Read Me - Common Public License V1.0 - Copyright Notice(©)

floor


>>-floor-------------------------------------------------------><

Returns the largest integer not greater than the receiving string. The receiving string is first rounded according to standard Rexx rules, as though the operation receiving_string+0 had been carried out. The floor is then calculated and returned. The result is never in exponential form. If there are no nonzero digits in the result, any minus sign is removed.

String class - floor method

2~floor               ->    2
'-2'~floor            ->    -2
12.3~floor            ->    12
'-12.3'~floor         ->    -13

Note

The [number] is rounded according to the current setting of NUMERIC DIGITS if necessary, before the method processes it.

Read Me - Common Public License V1.0 - Copyright Notice(©)