Tag Archives: BigDecimal

Java: Rounding error from Double to BigDecimal

Today’s amusement in my job: Rounding error from Double to BigDecimal, see java docs for public BigDecimal(double val). Java creates a BigDecimal which is exactly equal to 0.1 (an unscaled value of 1, with a scale of 1), but it is … Continue reading

Posted in howtos | Tagged , , , | 3 Comments