Conversion from exponential form to decimal in Java

java

Solution

It is not really a conversion, but about how you display the number. You can use NumberFormat to specify how the number should be displayed.

Check the difference:

double number = 100550000.75;
NumberFormat formatter = new DecimalFormat("#0.00");

System.out.println(number);
System.out.println(formatter.format(number));

Problem

I want to convert exponential to decimal. e.g. `1.234E3` to `1234`.

Original source

Related problems