BIS fnc parseNumberSafe: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...) |
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |game1= arma3 |
Revision as of 11:25, 23 January 2021
Description
- Description:
- Converts expression into a number. Can also convert array of expressions into an array of numbers.
If expression does not return a number, 0 is returned. - Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- [input] call BIS_fnc_parseNumberSafe
- Parameters:
- input: Number, String, Array, Side, Config or Array of those data types
- Return Value:
- Number or array of numbers if array is passed as an argument
Examples
- Example 1:
[safeZoneX,safeZoneWAbs,configFile] call BIS_fnc_parseNumberSafe;// Returns [-0.452381,1.90476,0]
- Example 2:
["1337","2013",date] call BIS_fnc_parseNumberSafe;// Returns [1337,2013,[2036,1,1,6,58]]
- Example 3:
[west,east,independent,civilian] call BIS_fnc_parseNumberSafe;// Returns [1,0,2,3]
Additional Information
- See also:
- parseNumber BIS_fnc_parseNumber
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