BIS fnc parseNumberSafe: Difference between revisions
Jump to navigation
Jump to search
m (see also) |
m (added examples) |
||
Line 30: | Line 30: | ||
|Datatype - description|Return value= | |Datatype - description|Return value= | ||
|x1= <code></code>|Example 1= | |x1= <code><nowiki>[</nowiki>[[safeZoneX]],[[safeZoneWAbs]],[[configFile]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_parseNumberSafe]];{{cc|Returns [-0.452381,1.90476,0]}}</code>|Example 1= | ||
|x2= <code>["1337","2013",[[date]]] [[call]] [[BIS_fnc_parseNumberSafe]];{{cc|Returns [1337,2013,[2036,1,1,6,58]]}}</code>|Example 2= | |||
|exec= call |Execution= | |exec= call |Execution= | ||
|[[BIS_fnc_parseNumber]] |See also= | |[[BIS_fnc_parseNumber]] [[parseNumber]] |See also= | ||
}} | }} | ||
Revision as of 20:17, 27 February 2020
Description
- Description:
/* Author: Killzone_Kid Description: Converts expression into a number (or array of expressions into an array of numbers) If expression does not return a number, 0 is returned Parameter(s): NUMBER, STRING, ARRAY, SIDE, CONFIG (NUMBER, STRING, ARRAY) Returns: NUMBER (or ARRAY of NUMBERs if ARRAY is passed as an argument) */
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [] call BIS_fnc_parseNumberSafe
- Parameters:
- parameter: Datatype - (Optional, default defValue) description
- Return Value:
- Datatype - description
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]]
Additional Information
- See also:
- BIS_fnc_parseNumber 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