|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.data.parser.postfixmathcommand.PostfixMathCommand
com.elegantj.data.parser.postfixmathcommand.Truncate
Truncates the double value
Command Method ->
truncate
| Constructor Summary | |
Truncate()
|
|
| Method Summary | |
void |
run(java.util.Stack inStack)
Determines the node execution with the stack of arguments and store the result back to the stack. |
static double |
truncate(double a,
int n)
Truncates the value to the specified scale For example, if value is 10.784565 and scale is 2 then it returns 10.79 |
| Methods inherited from class com.elegantj.data.parser.postfixmathcommand.PostfixMathCommand |
checkStack, getNumberOfParameters, getParameterTypes, getReturnType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Truncate()
| Method Detail |
public static double truncate(double a,
int n)
a - value to be truncatedn - scale of the truncation
public void run(java.util.Stack inStack)
throws CommandFailedException,
ArgumentRequiredException,
InvalidArgumentException
PostfixMathCommandI
inStack - the stack of the arguments
CommandFailedException
ArgumentRequiredException
InvalidArgumentException
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||