BIS fnc numberText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
m (Text replacement - " \| *tkoh * *\| *1.([0-9]{2}) * +\|([^g]|g[^a])" to " | tkoh |1.$1 |game2= arma3 |version2= 0.50 |$2")
Line 2: Line 2:


| tkoh
| tkoh
|1.00


|1.00
|game2= arma3
|version2= 0.50


|gr1= Math
|gr1= Math

Revision as of 22:18, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Problems:
It is very imprecise with larger numbers. See Example 3.
Groups:
MathStrings

Syntax

Syntax:
[number, modulo] call BIS_fnc_numberText
Parameters:
number: Number
modulo: Number - (Optional, default 3)
Return Value:
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"

Additional Information

See also:
BIS_fnc_numberDigitsBIS_fnc_cutDecimals

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note