public static class Conversion.Rat extends Conversion
Conversion
instances via
BigDecimal.divide(BigDecimal, MathContext)
.Conversion.Add, Conversion.Int, Conversion.Mul, Conversion.Pow, Conversion.Rat, Conversion.Sym
conversions
Constructor and Description |
---|
Rat(Conversion... conversions) |
Rat(long num,
long denom) |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
convert(double original)
Primary operator for
Conversion instances. |
public Rat(long num, long denom)
public Rat(Conversion... conversions)
public BigDecimal convert(double original)
Conversion
Conversion
instances.convert
in class Conversion
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.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.
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.