BIS fnc numberDigits: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Vabene1111 (talk | contribs) No edit summary |
||
Line 51: | Line 51: | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:numberDigits}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:numberDigits}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:numberDigits}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:numberDigits}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on March 20, 2018 - 21:25 (UTC)</dd> | |||
<dt class="note">[[User:vabene1111|vabene1111]]</dt> | |||
<dd class="note"> | |||
This Function is available in Arma 3 as well, but use it with caution: Numbers with more than 8 digits will return wrong results | |||
<code>[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] | |||
</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 22:25, 20 March 2018
Description
- Description:
/* Description: Break number into array of digits Example: 123456 > [1,2,3,4,5,6] Parameter(s): _this: NUMBER Returns: ARRAY */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
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]