Class AbstractFloatValueParser

java.lang.Object
ch.randelshofer.fastdoubleparser.AbstractNumberParser
ch.randelshofer.fastdoubleparser.AbstractFloatValueParser
Direct Known Subclasses:
AbstractConfigurableFloatingPointBitsFromByteArrayAscii, AbstractConfigurableFloatingPointBitsFromByteArrayUtf8, AbstractConfigurableFloatingPointBitsFromCharArray, AbstractConfigurableFloatingPointBitsFromCharSequence, AbstractJavaFloatingPointBitsFromByteArray, AbstractJavaFloatingPointBitsFromCharArray, AbstractJavaFloatingPointBitsFromCharSequence, AbstractJsonFloatingPointBitsFromByteArray, AbstractJsonFloatingPointBitsFromCharArray, AbstractJsonFloatingPointBitsFromCharSequence

abstract class AbstractFloatValueParser extends AbstractNumberParser
Abstract base class for parsers that parse a FloatingPointLiteral from a character sequence (str).

This is a C++ to Java port of Daniel Lemire's fast_double_parser.

References:

Daniel Lemire, fast_float number parsing library: 4x faster than strtod. MIT License.
github.com
Daniel Lemire, Number Parsing at a Gigabyte per Second, Software: Practice and Experience 51 (8), 2021. arXiv.2101.11408v3 [cs.DS] 24 Feb 2021
arxiv.org
  • Field Details

    • MAX_INPUT_LENGTH

      public static final int MAX_INPUT_LENGTH
      This is the maximal input length that a Java array can have.
      See Also:
    • MINIMAL_NINETEEN_DIGIT_INTEGER

      static final long MINIMAL_NINETEEN_DIGIT_INTEGER
      This is the smallest non-negative number that has 19 decimal digits.
      See Also:
    • MAX_EXPONENT_NUMBER

      static final int MAX_EXPONENT_NUMBER
      The decimal exponent of a double has a range of -324 to +308. The hexadecimal exponent of a double has a range of -1022 to +1023.
      See Also:
  • Constructor Details

    • AbstractFloatValueParser

      AbstractFloatValueParser()