Method rnd
rnd(Int32, Int32)
Rounds the value at the top of the stack
to the specified number of fractional decimal digits.
Declaration
public void rnd(int c, int f = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | c | Specifies the number of decimal digits to round to. |
System.Int32 | f | Midpoint rounding see: mod(Int32). |
Remarks
Parameter f
midpoint rounding see: mod(Int32)
0 quotient truncated towards zero.
1 rounded away from zero. (default)
2 rounded to even.
4 ceiling.