Arma 3 Scripting

BIS_fnc_cutDecimals

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

Function that rounds specified number to specified amount of decimals.

Note

Arma 3: Use toFixed instead.

Syntax

[number, precision] call BIS_fnc_cutDecimals

Parameters:

Returns: Number - rounded number.

Examples

Example 1

private _cutDecimals = [33.3333, 1] call BIS_fnc_cutDecimals; // returns 33.3

See also

toFixed · BIS_fnc_numberDigits · BIS_fnc_numberText