Top "Bigdecimal" questions

BigDecimal is a numeric object type in Java that represents decimal numbers with arbitrary precision.

Equals operator for zeros (BigDecimal / Double) in Java

A few interesting observations w.r.t equals operator on 0 and 0.0 new Double(0.0).equals(0) returns false, while new Double(0.0).equals(0.0) …

java double precision bigdecimal zero
BigDecimal in JavaScript

I'm very new to JavaScript (I come from a Java background) and I am trying to do some financial calculations …

javascript floating-point bigdecimal
Why BigDecimal("5.50") not equals to BigDecimal("5.5") and how to work around this issue?

Actually, I've found possible solution //returns true new BigDecimal("5.50").doubleValue() == new BigDecimal("5.5").doubleValue() Of course, it can be improved with …

java equals bigdecimal
What to do with Java BigDecimal performance?

I write currency trading applications for living, so I have to work with monetary values (it's a shame that Java …

java optimization currency math bigdecimal
Java, extract just the fractional part of a BigDecimal?

In Java, I'm working with the BigDecimal class and part of my code requires me to extract the fractional part …

java bigdecimal
Round up BigDecimal to Integer value

I have a BigDecimal which value is 450.90, I want to round up to next hole integer value, and then print …

java math rounding bigdecimal
Format BigDecimal without scientific notation with full precision

I'd like to convert a BigDecimal to String for printing purposes but print out all digits without scientific notation. For …

java string-formatting bigdecimal
Best way to convert Locale specific String to BigDecimal

I have to convert a German locale formatted String to a BigDecimal. However, I'm struggling with the best solution. The …

java bigdecimal
Logarithm of a BigDecimal

How can I calculate the logarithm of a BigDecimal? Does anyone know of any algorithms I can use? My googling …

java bigdecimal logarithm
Which PostgreSQL column type should be used to store a Java BigDecimal?

What PostgreSQL column type should I use to store a Java BigDecimal?

java postgresql bigdecimal