float value; the supported syntax is compatible with
Float#valueOf(String).
See JavaDoubleParser for a description of the supported grammar.
Expected character lengths for values produced by Float#toString:
DecSignificand (IntegerPart + FractionPart):
1 to 8 digitsIntegerPart: 1 to 7 digitsFractionPart: 1 to 7 digitsSignedInteger in exponent: 1 to 2 digitsFloatingPointLiteral: 1 to 14 characters, e.g. "-1.2345678E-38"FloatingPointLiteral with or without white space around it:
Integer#MAX_VALUE - 4 = 2,147,483,643 characters.| Modifier and Type | Field and Description |
|---|---|
| private static final JavaFloatBitsFromByteArray | |
| private static final JavaFloatBitsFromCharArray | |
| private static final JavaFloatBitsFromCharSequence |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static float | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static float | Returns: the parsed valuethe string to be parsed str, int the start offset of the offset, int FloatingPointLiteral in strthe length of length)FloatingPointLiteral in strParses a |
| public static float | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str)Convenience method for calling |
| public static float | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first byte to parse offset, int The number of bytes to parse length)Parses a |
| public static float | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static float | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first character to parse offset, int The number of characters to parse length)Parses a |
| BYTE_ARRAY_PARSER | back to summary |
|---|---|
| private static final JavaFloatBitsFromByteArray BYTE_ARRAY_PARSER | |
| CHAR_ARRAY_PARSER | back to summary |
|---|---|
| private static final JavaFloatBitsFromCharArray CHAR_ARRAY_PARSER | |
| CHAR_SEQUENCE_PARSER | back to summary |
|---|---|
| private static final JavaFloatBitsFromCharSequence CHAR_SEQUENCE_PARSER | |
| JavaFloatParser | back to summary |
|---|---|
| private JavaFloatParser() Don't let anyone instantiate this class. | |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(CharSequence str) throws NumberFormatException Convenience method for calling
| |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(CharSequence str, int offset, int length) throws NumberFormatException Parses a
| |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(byte[] str) throws NumberFormatException Convenience method for calling
| |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(byte[] str, int offset, int length) throws NumberFormatException Parses a
| |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(char[] str) throws NumberFormatException Convenience method for calling
| |
| parseFloat | back to summary |
|---|---|
| public static float parseFloat(char[] str, int offset, int length) throws NumberFormatException Parses a
| |