I am trying to print a double value. It is printing in matissa and exponent format, which is not what I want. For example, my program prints 1.234567E6
for the value 1243567. How can I make it print 1234657
?
BigDecimal.valueOf(double).toPlainString();
You might look into the NumberFormat class and the DecimalFormat.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With