how do i flot a number to a 2 decimal points?
for example like this
1.256454122 X10^2
to
1.26 X 10^2????
Printable View
how do i flot a number to a 2 decimal points?
for example like this
1.256454122 X10^2
to
1.26 X 10^2????
Try seeing if System.out.printf(...), or String.format(...) can help you accomplish this.
Also see the DecimalFormat class.