final public static BigDecimal toBigDecimal(double v, int scale, int roundingMode)(Code)
Converts a double to a big decimal with a scale.
It is strongly deprecated to use new Dicimal(double) since
the scale is unpredictable and usually surprising.
Example, BigDecimal(.1) will becomes
.1000000000000000055511151231257827021181583404541015625.
On the other hand, BigDecimal("0.1") will be 0.1 correctly.
Parameters: scale - the BigDecimal's scale Parameters: roundingMode - the rounding mode
toBigDecimal
final public static BigDecimal toBigDecimal(double v, int scale)(Code)