The Java BigDecimal Constructor

Which BigDecimal Constructor Should You Use?

Posted by Tomy Jaya on December 16, 2015

Today I Learnt (TIL)

To always use the java.math.BigDecimal constructor which accepts String argument.


The constructor accepting double might behave ‘unexpectedly’ as it retains the floating point precision of the double input.