public class FuncRound extends Function
FuncRound class.
Constructor and Description |
---|
FuncRound()
Constructor for FuncRound.
|
FuncRound(TokVariable var)
Constructor for FuncRound.
|
Modifier and Type | Method and Description |
---|---|
void |
resolve(ValueStack values)
resolve.
|
String |
toString() |
getParameterCount, precedence, setParameterCount, updateParameterCount
convertToBoolean, convertToDouble, includeInRpn, preceeds
public FuncRound()
Constructor for FuncRound.
public FuncRound(TokVariable var)
Constructor for FuncRound.
var
- a TokVariable
object.public void resolve(ValueStack values) throws Exception
resolve.
The round function uses two operands. The second one is the number of decimal places in which to round to.
resolve
in class EquPart
values
- a ValueStack
object.Exception
- if any.Copyright © 2018 CodeTaco. All rights reserved.