BIS fnc numberDigits: Difference between revisions
Jump to navigation
Jump to search
Vabene1111 (talk | contribs) No edit summary |
Vabene1111 (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Break number into array of digits |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | number call '''BIS_fnc_numberDigits''' |= | ||
|p1= |= | |p1= number: [[Number]] - Number that should be broken down |= PARAMETER1 | ||
| |= | | [[Array]] - Array of digits representing Number<br /><br /> |= RETURNVALUE | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>12345678 call BIS_fnc_numberDigits //returns [1,2,3,4,5,6,7,8] | ||
</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 22:52, 20 March 2018
Description
- Description:
- Break number into array of digits
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- number call BIS_fnc_numberDigits
- Parameters:
- number: Number - Number that should be broken down
- Return Value:
- Array - Array of digits representing Number
Examples
- Example 1:
12345678 call BIS_fnc_numberDigits //returns [1,2,3,4,5,6,7,8]
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
Notes
Bottom Section
- Posted on March 20, 2018 - 21:25 (UTC)
- vabene1111
-
This Function is available in Arma 3 as well, but use it with caution: Numbers with more than 8 digits will return wrong results
[11111111] call BIS_fnc_numberDigits // returns : [1,1,1,1,1,1,1,1] [111111111] call BIS_fnc_numberDigits // returns : [1,1,1,1,1,1,1,1,2] [1111111111111] call BIS_fnc_numberDigits // returns : [1,1,1,1,1,1,1,1,0,6,5,6,0]