Skip to content

ROUNDDOWN Expression

ROUNDDOWN parses a numeric input and applies std::floor: it returns the greatest integer value less than or equal to the input.

Syntax

ROUNDDOWN{value}

Examples

Values already present in ACE's expression/math-parser tests include:

ROUNDDOWN{7.8}    -> 7
ROUNDDOWN{-2.1}   -> -3

Floor moves toward negative infinity. Nested numeric expressions may be used as the input.