floor: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page floor to Floor without leaving a redirect: Converting page title to first-letter uppercase)
m (Conversion script moved page Floor to floor: Converting page titles to lowercase)
(No difference)

Revision as of 22:54, 9 February 2023

floor() Function

Returns the number padded in if it is an integer, otherwise the number is rounded down to the nearest smaller integer and that value is returned.

Usage

[h: result = floor(num)]

Examples

[r: floor(2)]

Returns 2.

[r: floor(1.2)]

Returns 1.

[r: floor(-1.2)]
Returns -2.