Properties

roundingMode

Supported By

Applies To

Global environment

Examples

set roundingMode to "even"
set roundingMode to "down"

Description

The roundingMode property determines or changes the rounding mode used when evaluating mathematical operations and functions. The possible values for the roundingMode are "ceiling", corresponding to the rounding used by the ceil function; "floor", corresponding to the rounding used by the floor function; "up", corresponding to the rounding used by the aug function; "down", corresponding to the rounding used by the trunc function; "nearest", corresponding to the rounding used by the round function; and "even", corresponding to the rounding used by the rint function.

The default value of the roundingMode property is "even".

Note

The roundingMode property is specific to OpenXION; it is not part of the XION Scripting Language Standard.

See Also

precision, mathProcessor