-
What is the limitation of toString() method of BigDecimal?
-
- There is no limitation
- toString uses scientific notation
- toString returns the number in expanded form
- toString returns null
- None of these
- There is no limitation
Correct Option: B
toString() of BigDecimal uses scientific notation to represent numbers known as canonical representation. We must use toPlainString() to avoid scientific notation.