FileDocCategorySizeDatePackage
ScaledNumberFormatSimple.javaAPI DocExample495Sat May 29 22:02:30 BST 2004None

ScaledNumberFormatSimple

public class ScaledNumberFormatSimple extends Object
A simple example of ScaleNumberFormat, from com.darwinsys.util

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));