Modifier and Type | Field | Description |
---|---|---|
static MathContext |
DEFAULT_MATH_CONTEXT |
The default MathContext used for BigDecimal calculus.
|
static MathContext |
MATH_CONTEXT |
Exposes (non-final) the MathContext used for BigDecimal calculus.
|
Constructor | Description |
---|---|
Calculus() |
Modifier and Type | Method | Description |
---|---|---|
static NumberSystem |
currentNumberSystem() |
Returns the current
NumberSystem used for Number arithmetic. |
static List<NumberSystem> |
getAvailableNumberSystems() |
All available
NumberSystems used for Number arithmetic. |
static Map<Class<? extends AbstractConverter>,Integer> |
getNormalFormOrder() |
|
static NumberSystem |
getNumberSystem(String name) |
Returns the given
NumberSystem used for Number arithmetic by (class) name. |
static void |
setCurrentNumberSystem(NumberSystem system) |
Sets the current number system
|
public static final MathContext DEFAULT_MATH_CONTEXT
public static MathContext MATH_CONTEXT
public Calculus()
public static List<NumberSystem> getAvailableNumberSystems()
NumberSystems
used for Number arithmetic.public static NumberSystem currentNumberSystem()
NumberSystem
used for Number arithmetic.public static void setCurrentNumberSystem(NumberSystem system)
system
- the new current number system.currentNumberSystem()
public static NumberSystem getNumberSystem(String name)
NumberSystem
used for Number arithmetic by (class) name.public static Map<Class<? extends AbstractConverter>,Integer> getNormalFormOrder()
Copyright © 2005–2020 Units of Measurement project. All rights reserved.