Class Conversion.Mul

  • Enclosing class:
    Conversion

    public static class Conversion.Mul
    extends Conversion
    Multiplies all Conversion instances via BigDecimal.multiply(BigDecimal).
    • Constructor Detail

    • Method Detail

      • convert

        public java.math.BigDecimal convert​(double original)
        Description copied from class: Conversion
        Primary operator for Conversion instances.
        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.