BIS fnc parseNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return number from expression |= Description
 
Description:
Return number from expression
 
Parameter(s):
_this: NUMBER or STRING or CODE or CONFIG
 
Returns:
NUMBER
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_parseNumber]]; --> |= Syntax
| 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

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