public class MathContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.Object> |
instructions |
protected java.util.Map<java.lang.Character,java.lang.Double> |
vars |
| Constructor and Description |
|---|
MathContext(java.util.List<java.lang.Object> l) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Double> |
exec() |
static int |
floorInt(double d) |
static long |
floorLong(double d) |
double |
getVar(char var) |
void |
importVars(MathContext ctx)
Import variables from the given
MathContext The values of the parameter overwrite pre-existing ones. |
void |
setVar(char var,
double val) |
protected java.util.Map<java.lang.Character,java.lang.Double> vars
protected java.util.List<java.lang.Object> instructions
public void setVar(char var,
double val)
public double getVar(char var)
public java.util.List<java.lang.Double> exec()
public void importVars(MathContext ctx)
MathContext ctx - the source. If null, it is ignoredpublic static long floorLong(double d)
public static int floorInt(double d)