double value; the supported syntax is compatible with
number in the JSON format specification.
Syntax
Numeric values that cannot be represented in the grammar below (such as Infinity and NaN) are not permitted.
number = [ minus ] int [ frac ] [ exp ] minus = %x2D ; - int = zero / ( digit1-9 *DIGIT ) frac = decimal-point 1*DIGIT exp = e [ minus / plus ] 1*DIGIT decimal-point = %x2E ; . digit1-9 = %x31-39 ; 1-9 e = %x65 / %x45 ; e E plus = %x2B ; + zero = %x30 ; 0
Supported maximal input length:
number without white space around it:
Integer#MAX_VALUE - 4 = 2,147,483,643 characters.| Modifier and Type | Field and Description |
|---|---|
| private static final JsonDoubleBitsFromByteArray | |
| private static final JsonDoubleBitsFromCharArray | |
| private static final JsonDoubleBitsFromCharSequence |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static double | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static double | 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 double | 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 double | 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 double | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static double | 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 JsonDoubleBitsFromByteArray BYTE_ARRAY_PARSER | |
| CHAR_ARRAY_PARSER | back to summary |
|---|---|
| private static final JsonDoubleBitsFromCharArray CHAR_ARRAY_PARSER | |
| CHAR_SEQUENCE_PARSER | back to summary |
|---|---|
| private static final JsonDoubleBitsFromCharSequence CHAR_SEQUENCE_PARSER | |
| JsonDoubleParser | back to summary |
|---|---|
| private JsonDoubleParser() Don't let anyone instantiate this class. | |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(CharSequence str) throws NumberFormatException Convenience method for calling
| |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(CharSequence str, int offset, int length) throws NumberFormatException Parses a
| |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(byte[] str) throws NumberFormatException Convenience method for calling
| |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(byte[] str, int offset, int length) throws NumberFormatException Parses a
| |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(char[] str) throws NumberFormatException Convenience method for calling
| |
| parseDouble | back to summary |
|---|---|
| public static double parseDouble(char[] str, int offset, int length) throws NumberFormatException Parses a
See
| |