ParseFixed

int, fixed ParseFixed(str s, int base)

This function returns multiple values

Description

Parses s as a real number in the specified base and returns status and result. If base is 0, base 10 is used by default and prefixes like 0x are allowed.

See Number parsing for features and examples.

This function parses the fractional part only up to the amount of digits that can be stored in a fixed-point number. This means that numbers with very long fractional parts will not be fully parsed, e.g. "0.12345678901234567890thisisnotanumberanymore!@#$^#$^$*%^*$" will parse successfully.