RPTools

Personal tools
From MapToolDoc

floor

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

  1. [h: result = floor(num)]

Examples

  1. [r: floor(2)]

Returns 2.

  1. [r: floor(1.2)]

Returns 1.

  1. [r: floor(-1.2)]

Returns -2.