In 1.4.x and earlier releases, the BigDecimal toString method did not use scientific notation. The scale of a fractional value was a function of the number of leading zeros. With jsr 13 and the introduction of scales of both signs, the use of scientific notation is necessary for the toString method to preserve both numerical value and representation information. However, there remains a need to generated old-style strings; e.g. interfacing with data bases.
- relates to
-
JDK-6372330 API doc for BigDecimal.toPlainString() is wrong
- Resolved
-
JDK-6298816 The return value of BigDecimal.toString method is different when run against 1.4 vs 1.5
- Closed
-
JDK-6364896 Document compatibility issue of J2SE 5.0's BigDecimal.toString()
- Closed
-
JDK-4851776 Allow control of precision and rounding of BigDecimal arithmetic operations
- Resolved
-
JDK-4905407 Specification of toEngineeringString should be clarified
- Resolved