skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Floor
 

Try Corticon Now

Floor

SYNTAX

<Decimal>.floor

DESCRIPTION

Returns the Integer closest to zero from <Decimal>.floor may also be thought of as a truncation of <Decimal>.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

The Rulesheet uses .floor to assign Integer values to integer1 that are closer to zero than the input decimal1 values.

SAMPLE RULETEST

A sample Ruletest provides three decimal1 values. Input and Output panels are shown below:
Note: Notice how these results differ from those shown in the Round example.