Arma 3 Scripting

Command in Math

floor

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the next lowest integer in relation to the provided number.

Syntax

floor num

Parameters:

Returns: Number

Examples

Example 1

floor 5.1;        // result is  5
floor 5.999;    // result is  5
floor -2.01;    // result is -3
floor -2.99;    // result is -3

See also

ceil · round · linearConversion