Class Conversion.Int

  • Enclosing class:
    Conversion

    public static class Conversion.Int
    extends Conversion
    Simply is a representation of a possibly large integer.
    • Constructor Detail

      • Int

        public Int​(long i)
      • Int

        public Int​(java.lang.String s)
    • Method Detail

      • convert

        public java.math.BigDecimal convert​(double original)
        Returns a BigDecimal representation of this int. Original argument is ignored.
        Specified by:
        convert in class Conversion
        Parameters:
        original - A unit value which is to be processed through the tree-like representation of this equation. Only Conversion.Sym objects will actually use the "original" value.
        Returns:
        a BigDecimal result from the calculation. If this value maps to Double.NEGATIVE_INFINITY or Double.POSITIVE_INFINITY, then a BigResult exception should be thrown before returning to clients.