| |
|
| java.lang.Object net.xoetrope.xui.helper.NumberFormatter
NumberFormatter | public class NumberFormatter (Code) | | A utility to help format numbers in accordance with the current Locale
Copyright (c) Xoetrope Ltd., 1998-2004
$Revision: 1.4 $
|
NumberFormatter | public NumberFormatter()(Code) | | |
format | public static String format(double input)(Code) | | Convert a double value to a string
Parameters: input - the input numeric value the string representation of the number |
format | public static String format(long input)(Code) | | Convert a long value to a string
Parameters: input - the input numeric value the string representation of the number |
format | public static String format(Object input)(Code) | | Convert a Object (Double,Float etc) value to a string
Parameters: input - the input numeric value the string representation of the number |
formatDouble | public static String formatDouble(double input)(Code) | | Convert a double value to a string
Parameters: input - the input numeric value the string representation of the number |
getDecimalSeparator | public static char getDecimalSeparator()(Code) | | Get the current decimal separator character
|
parse | public static Number parse(String input)(Code) | | Convert a string to a Number
Parameters: input - thge input string the Number object |
parseDouble | public static double parseDouble(String input)(Code) | | Convert a string to a double value
Parameters: input - the input string representation of the number the numeric value |
parseFloat | public static float parseFloat(String input)(Code) | | Convert a string to a float value
Parameters: input - the input string representation of the number the numeric value |
parseInt | public static int parseInt(String input)(Code) | | Convert a string to an int value
Parameters: input - the input string representation of the number the numeric value |
|
|
|