BIS fnc numberText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Undo revision 238108 by R3vo (talk))
Tag: Undo
m (Text replacement - ";{{cc|" to "; {{cc|")
Line 25: Line 25:
|x2= <code>[512, 1] [[call]] [[BIS_fnc_numberText]]; {{cc|"5 1 2"}}</code>
|x2= <code>[512, 1] [[call]] [[BIS_fnc_numberText]]; {{cc|"5 1 2"}}</code>


|x3= <code>[999999999999] [[call]] [[BIS_fnc_numberText]];{{cc|"909 999 995 904"}}</code>
|x3= <code>[999999999999] [[call]] [[BIS_fnc_numberText]]; {{cc|"909 999 995 904"}}</code>


| [[BIS_fnc_numberDigits]], [[BIS_fnc_cutDecimals]]
| [[BIS_fnc_numberDigits]], [[BIS_fnc_cutDecimals]]

Revision as of 14:54, 16 February 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:
Syntax needed
Parameters:
number: Number
modulo: Number - (Optional, default 3)
Return Value:
Return value needed

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:
See also needed

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