Class Round
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.arithmetic.Round
public class Round
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function Round rounds the given number (1st argument) to the desired number of decimal
places (2nd argument).
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<num-exp> <dec-exp> |
<num-exp>: number <dec-exp>: number |
number |
Round(1666.6666, 2) The function returns 1666.67. |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expression
calculate
(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static Round
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
static care.smith.top.model.Expression
of
(care.smith.top.model.Phenotype phe1, care.smith.top.model.Phenotype phe2) static care.smith.top.model.Expression
static care.smith.top.model.Expression
Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues
-
Method Details
-
get
-
of
-
of
public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args) -
of
public static care.smith.top.model.Expression of(care.smith.top.model.Phenotype phe1, care.smith.top.model.Phenotype phe2) -
of
-
of
-
calculate
public care.smith.top.model.Expression calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) - Specified by:
calculate
in classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-