parseNumber: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add C++ info to link name) |
Lou Montana (talk | contribs) m (Text replacement - "|size=0.75" to "|size= 0.75") |
||
Line 24: | Line 24: | ||
|s1= [[parseNumber]] value | |s1= [[parseNumber]] value | ||
|p1= value: [[String]] or {{GVI|arma3|1.50|size=0.75}} [[Boolean]] | |p1= value: [[String]] or {{GVI|arma3|1.50|size= 0.75}} [[Boolean]] | ||
|r1= [[Number]] - the parsed number, {{hl|0}} if no valid number was found; in the case of a passed [[Boolean]], 0 if [[false]], 1 if [[true]] | |r1= [[Number]] - the parsed number, {{hl|0}} if no valid number was found; in the case of a passed [[Boolean]], 0 if [[false]], 1 if [[true]] |
Revision as of 12:09, 21 December 2022
Description
- Description:
- Parses the string, interpreting its content as a floating point number.
- Groups:
- Strings
Syntax
- Syntax:
- parseNumber value
- Parameters:
- value: String or 1.50 Boolean
- Return Value:
- Number - the parsed number, 0 if no valid number was found; in the case of a passed Boolean, 0 if false, 1 if true
Examples
- Example 1:
- Example 2:
- since Arma 3 v1.50:
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Strings