Mega Code Archive

 
Categories / Java / Data Type
 

Formatting a Number in Exponential Notation

The 'E' symbol specifies that a number should be formatted in exponential notation.  E symbol separates the mantissa from the exponent.  E symbol must be followed by one or more '0' symbols.  The number of '0' symbols specifies the minimum number of digits used to display the exponent.