BIS_fnc_numberText
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · also in Strings · Markdown · JSON · original wiki page
Description
Convert a number into string (avoiding scientific notation).
Syntax
[number, modulo] call BIS_fnc_numberText
Parameters:
Returns: String
Examples
Example 1
[4096] call BIS_fnc_numberText; // "4 096"
Example 2
[512, 1] call BIS_fnc_numberText; // "5 1 2"
Example 3
[999999999999] call BIS_fnc_numberText; // "909 999 995 904"
Example 4
[1234.5678] call BIS_fnc_numberText; // "1 234"
Problems
It is very imprecise with larger numbers. See #Example 3. It also does not work with floating point numbers.