FileDocCategorySizeDatePackage
ScaledNumberFormatSimple.javaAPI DocExample376Sat Mar 03 15:21:52 GMT 2001None

ScaledNumberFormatSimple

public class ScaledNumberFormatSimple extends Object

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

		String cinput = "1.5K";
		long ninput = 10483892;
		long result;
		ScaledNumberFormat nf = new ScaledNumberFormat();

		result = ((Long)nf.parseObject(cinput, null)).longValue();
		System.out.println(cinput + " -> " + result);

		System.out.println(ninput + " -> " + nf.format(ninput));