DecimalFormatSymbols GetExponentSeparator() Example
Returns the string used to separate the mantissa from the exponent
DecimalFormatSymbolsclass GetExponentSeparator() method example. This example shows you how to use GetExponentSeparator() method.This method Returns the string used to separate the mantissa from the exponent
Here is the code:-
/**
* @Program that Returns the string used to separate the mantissa from the exponent.
* GetExponentSeparator.java
* Author:-RoseIndia Team
* Date:-14-Jun-2008
*/
import java.text.*;
public class GetExponentSeparator {
public static void main(String[] args) {
DecimalFormatSymbols dfs = new DecimalFormatSymbols();
String s=dfs.getExponentSeparator();
System.out.println("String used to separate the mantissa: "+s);
}
} |
Output of the Program
| String used to separate the mantissa: E |
|