How to print scientific numbers [closed]
How to print scientific numbers instead of a normal numbers? I have very small number and it is shown to be 0.0
Many choices:
DecimalFormat
, orString#format()
, orPrintStream#printf()
(as inSystem.out.printf(...)
).
精彩评论