| |
|
| java.lang.Object org.apache.harmony.luni.util.FloatingPointParser
FloatingPointParser | final public class FloatingPointParser (Code) | | Used to parse a string and return either a single or double precision
floating point number.
|
Method Summary | |
public static double | parseDouble(String s) Returns the closest double value to the real number in the string. | public static float | parseFloat(String s) Returns the closest float value to the real number in the string. |
parseDouble | public static double parseDouble(String s)(Code) | | Returns the closest double value to the real number in the string.
Parameters: s - the String that will be parsed to a floating point the double closest to the real number exception: NumberFormatException - if the String doesn't represent a double |
parseFloat | public static float parseFloat(String s)(Code) | | Returns the closest float value to the real number in the string.
Parameters: s - the String that will be parsed to a floating point the float closest to the real number exception: NumberFormatException - if the String doesn't represent a float |
|
|
|