org.ojalgo
Class MathContext
java.lang.Object
org.ojalgo.MathContext
public class MathContext
- extends Object
MathContext Anticipating java.math.MathContext of SDK1.5
- Author:
- apete
DECIMAL128
public static final MathContext DECIMAL128
DECIMAL32
public static final MathContext DECIMAL32
DECIMAL64
public static final MathContext DECIMAL64
UNLIMITED
public static final MathContext UNLIMITED
MathContext
public MathContext(int aPrecision)
MathContext
public MathContext(int aPrecision,
int aRoundingMode)
getPrecision
public int getPrecision()
getRoundingMode
public int getRoundingMode()
getScale
public int getScale()
- Returns:
- Half the precision
getScale
public int getScale(Number aNmbr)
getScale
public int getScale(double aNmbr)
getScale
public int getScale(Number aNmbr1,
Number aNmbr2)