StringParser.toNumber() - Mtax-Development/GML-OOP GitHub Wiki

Argument

Name
Type
Optional
decimalDotCount?
Yes

Returns

{real} | On error: {undefined}

Description

Return the string as a number if it contains numerical characters. A separator counter can be specified to treat all remaining number characters as decimal places after that finding that many dot characters. It can also be specified either as 0 to treat the the entire number as a decimal or as {all} to treat it as an integer.

⚠️ **GitHub.com Fallback** ⚠️