Class NumberParser

    • Field Detail

      • pow10

        private static final double[] pow10
        Array of powers of ten. Using double instead of float gives a tiny bit more precision.
    • Constructor Detail

      • NumberParser

        public NumberParser()
    • Method Detail

      • parseFloat

        protected float parseFloat()
                            throws ParseException,
                                   java.io.IOException
        Parses the content of the buffer and converts it to a float.
        Throws:
        ParseException
        java.io.IOException
      • buildFloat

        public static float buildFloat​(int mant,
                                       int exp)
        Computes a float from mantissa and exponent.