Arma 3 Scripting

Command in Math

round

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

Description

Rounds the provided value to the closest integer.

Syntax

round value

Parameters:

Returns: Number

Examples

Example 1

round 5.25; // returns 5

Example 2

round -5.25; // returns -5

See also

floor · ceil · linearConversion