FileDocCategorySizeDatePackage
FormatTest.javaAPI DocExample324Sun Mar 28 19:09:20 BST 1999None

FormatTest

public class FormatTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    NumberFormat nf = NumberFormat.getInstance();
    for (double x = Math.PI; x < 100000; x *= 10) {
      String formattedNumber = nf.format(x);
      System.out.println(formattedNumber + "\t" + x);
    }