BIS fnc parseNumber: Difference between revisions
Jump to navigation
Jump to search
m (see also) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Return number from expression |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | value call [[BIS_fnc_parseNumber]] |= Syntax | ||
|p1= |= Parameter 1 | |p1= value: [[Number]], [[String]], [[Code]] or [[Config]] |= Parameter 1 | ||
| |= Return value | | [[Number]] - parsed number, -1 if value is not a number |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>_result = 7.62 [[call]] [[BIS_fnc_parseNumber]]; | ||
_result = "7.62" [[call]] [[BIS_fnc_parseNumber]]; | |||
_result = { 7.62 } [[call]] [[BIS_fnc_parseNumber]];</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[parseNumber]] |= See also | | [[parseNumber]] |= See also | ||
}} | }} | ||
Revision as of 15:42, 27 April 2018
Description
- Description:
- Return number from expression
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- value call BIS_fnc_parseNumber
- Parameters:
- value: Number, String, Code or Config
- Return Value:
- Number - parsed number, -1 if value is not a number
Examples
- Example 1:
_result = 7.62 call BIS_fnc_parseNumber; _result = "7.62" call BIS_fnc_parseNumber; _result = { 7.62 } call BIS_fnc_parseNumber;
Additional Information
- See also:
- 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