BIS_fnc_cutDecimals

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Function that rounds specified number to specified amount of decimals.
Arma 3 logo black.png
Use toFixed instead.

Syntax

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
Return Value:
Number - Rounded number.

Examples

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

Additional Information

Execution:
call
Multiplayer:
-
See also:
toFixedBIS_fnc_numberDigitsBIS_fnc_numberText

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section