public class AstRound extends AstBinOp
Constructor and Description |
---|
AstRound() |
Modifier and Type | Method and Description |
---|---|
double |
op(double x,
double digits)
Override to express a basic math primitive
|
java.lang.String |
str()
String representation of this Ast object in the Rapids language.
|
apply, args, categoricalOK, frame_op_scalar, nargs, prim_apply, str_op
description, example, exec
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public java.lang.String str()
AstRoot
AstPrimitive
s this is the name of the function; for
AstParameter
s this is either the name of the variable, or the
value of the numeric constant that the parameter represents. For more
complicated constructs such as AstExec
or AstFunction
this method should return those objects as a Rapids string.