BIS fnc numberText: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "\|+$" to "") | Lou Montana (talk | contribs)  m (Text replacement - "{{HashLink" to "{{Link") | ||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 13: | Line 13: | ||
| |descr= Convert a number into string (avoiding scientific notation). | |descr= Convert a number into string (avoiding scientific notation). | ||
| |pr= It is very imprecise with larger numbers. See  | |pr= It is very imprecise with larger numbers. See {{Link|#Example 3}}. It also does not work with floating point numbers. | ||
| |s1=[number, modulo] call [[BIS_fnc_numberText]] | |s1= [number, modulo] call [[BIS_fnc_numberText]] | ||
| |p1= number: [[Number]] | |p1= number: [[Number]] | ||
| Line 23: | Line 23: | ||
| |r1= [[String]] | |r1= [[String]] | ||
| |x1= < | |x1= <sqf>[4096] call BIS_fnc_numberText; // "4 096"</sqf> | ||
| |x2= < | |x2= <sqf>[512, 1] call BIS_fnc_numberText; // "5 1 2"</sqf> | ||
| |x3= < | |x3= <sqf>[999999999999] call BIS_fnc_numberText; // "909 999 995 904"</sqf> | ||
| |seealso= [[BIS_fnc_numberDigits]] | |x4= <sqf>[1234.5678] call BIS_fnc_numberText; // "1 234"</sqf> | ||
| |seealso= [[BIS_fnc_numberDigits]] [[BIS_fnc_cutDecimals]] | |||
| }} | }} | ||
Latest revision as of 17:43, 4 January 2023
Description
- Description:
- Convert a number into string (avoiding scientific notation).
- Execution:
- call
- Problems:
- It is very imprecise with larger numbers. See Example 3. It also does not work with floating point numbers.
- Groups:
- MathStrings
Syntax
- Syntax:
- [number, modulo] call BIS_fnc_numberText
- Parameters:
- number: Number
- modulo: Number - (Optional, default 3)
- Return Value:
- String
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
Additional Information
- See also:
- BIS_fnc_numberDigits BIS_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
 
	
