StringParser.toNumber() - Mtax-Development/GML-OOP GitHub Wiki
Name |
Type |
Optional |
decimalDotCount? |
Yes |
{real} | On error: {undefined}
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.