BIS fnc parseNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return number from expression |= Description
| Return number from expression |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| value call [[BIS_fnc_parseNumber]] |= Syntax
| value call [[BIS_fnc_parseNumber]] |SYNTAX=


|p1= value: [[Number]], [[String]], [[Code]] or [[Config]] |= Parameter 1
|p1= value: [[Number]], [[String]], [[Code]] or [[Config]] |PARAMETER1=


| [[Number]] - parsed number, -1 if value is not a number |= Return value
| [[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> |= Example 1
_result = { 7.62 } [[call]] [[BIS_fnc_parseNumber]];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[parseNumber]] |= See also
| [[parseNumber]] |SEEALSO=
}}
}}



Revision as of 14:32, 7 April 2019

Hover & click on the images for description

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

Notes

Bottom Section