BIS fnc parseNumber: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Return number from expression |= | | Return number from expression |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| value call [[BIS_fnc_parseNumber]] |= | | value call [[BIS_fnc_parseNumber]] |SYNTAX= | ||
|p1= value: [[Number]], [[String]], [[Code]] or [[Config]] |= | |p1= value: [[Number]], [[String]], [[Code]] or [[Config]] |PARAMETER1= | ||
| [[Number]] - parsed number, -1 if value is not a number |= | | [[Number]] - parsed number, -1 if value is not a number |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_result = 7.62 [[call]] [[BIS_fnc_parseNumber]]; | |x1= <code>_result = 7.62 [[call]] [[BIS_fnc_parseNumber]]; | ||
_result = "7.62" [[call]] [[BIS_fnc_parseNumber]]; | _result = "7.62" [[call]] [[BIS_fnc_parseNumber]]; | ||
_result = { 7.62 } [[call]] [[BIS_fnc_parseNumber]];</code> |= | _result = { 7.62 } [[call]] [[BIS_fnc_parseNumber]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[parseNumber]] |= | | [[parseNumber]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:32, 7 April 2019
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