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:
number: Number - decimal number to round.precision: Number - (Optional, default 0) amount of decimals to round to
Returns: Number - rounded number.
Examples
Example 1
private _cutDecimals = [33.3333, 1] call BIS_fnc_cutDecimals; // returns 33.3