toString() may be an option.
But just tested the test on it, toPlainString () was the clear winner.
From Oracle docs:
String toPlainString () Returns a string representation of this BigDecimal without an exponent field.
String toString () Returns a string representation of this BigDecimal, using scientific notation if exponent is required.
source
share