Full Library / Math Operator / Transform / Basic / Round
Block Name: Round
- public class Round
- extends Transformer
- Produce an output token on each firing with a value that is equal to the specified rounded value of the input. The input type is DoubleToken. The output type is IntToken. The functions are a subset of those in the java.lang.Math class. They are:
- ceil: Round towards positive infinity.
- floor: Round towards negative infinity.
- round: Round towards nearest integer.
- truncate: Round towards zero.
If the argument is NaN, then the result is NaN. The default is "round".
function
public StringAttribute function
- The rounding strategy to use. This is a string-valued parameter that defaults to "round".
Created with the Personal Edition of HelpNDoc: Free EPub and documentation generator