Class NumericValue

    • Constructor Detail

      • NumericValue

        public NumericValue​(int base,
                            String integer)
    • Method Detail

      • getBase

        public int getBase()
      • getIntegerPart

        public String getIntegerPart()
      • getFractionalPart

        public String getFractionalPart()
      • getExponentBase

        public int getExponentBase()
      • getExponent

        public String getExponent()
      • getFlags

        public int getFlags()
      • toBigDecimal

        public BigDecimal toBigDecimal()
        So, it turns out that parsing arbitrary bases into arbitrary precision numbers is nontrivial, and this routine gets it wrong in many important cases.
      • toJavaLangNumber

        public Number toJavaLangNumber()
      • intValue

        public int intValue()
        Specified by:
        intValue in class Number
      • longValue

        public long longValue()
        Specified by:
        longValue in class Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class Number