This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
new:number_parsing [2018/02/17 22:22] – korshun | new:number_parsing [2018/02/18 17:58] – korshun | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Simple number parsing ===== | ===== Simple number parsing ===== | ||
- | Simple number parsing functions return 0 if the input string cannot be parsed as a number, and return the minimum or maximum possible value if the input string is a number beyond [[limits|value limits]] of ACS variables. | + | Simple number parsing functions return 0 if the input string cannot be parsed as a number, and return the minimum or maximum possible value ('' |
* '' | * '' | ||
Line 18: | Line 18: | ||
* Integers: ''< | * Integers: ''< | ||
* Fixed-point numbers: ''< | * Fixed-point numbers: ''< | ||
+ | |||
+ | There must be no spaces in the string, not even around the number. | ||
Sign can be '' | Sign can be '' | ||
Line 24: | Line 26: | ||
* Nothing -- base 10 | * Nothing -- base 10 | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
- | |||
- | Bases up to 36 are supported, using the following digits: '' | ||
===== Advanced parsing functions ===== | ===== Advanced parsing functions ===== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Advanced number parsing functions return two values. The first one is a status code, and the second is parsing result: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | The parameter '' | ||