ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:number_parsing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
new:number_parsing [2018/02/18 01:56] korshunnew:number_parsing [2018/02/18 18:00] korshun
Line 26: Line 26:
  
   * Nothing -- base 10   * Nothing -- base 10
-  * ''0x'' -- base 16+  * ''0x'' -- base 16 (case-insensitive)
   * ''0o'' -- base 8   * ''0o'' -- base 8
   * ''0b'' -- base 2   * ''0b'' -- base 2
- 
-Bases up to 36 are supported, using the following digits: ''0123456789abcdefghijklmnopqrstuvwxyz''. Digits beyond ''9'' are case-insensitive. 
  
 ===== Advanced parsing functions ===== ===== Advanced parsing functions =====
Line 43: Line 41:
   * ''PARSENUMBER_BADFORMAT'' -- the input string doesn't conform to the format. The second value is 0.   * ''PARSENUMBER_BADFORMAT'' -- the input string doesn't conform to the format. The second value is 0.
  
-The parameter ''default_base'' sets the default base to parse the number in. Bases up to 36 are supported, using the following digits: ''0123456789abcdefghijklmnopqrstuvwxyz''. Any default base can be overriden by a base prefix.+The parameter ''default_base'' sets the default base to parse the number in. Bases up to 36 are supported, using the following digits: ''0123456789abcdefghijklmnopqrstuvwxyz''. Digits beyond ''9'' are case-insensitive. Any default base may be overridden by a base prefix.
  
  
new/number_parsing.txt · Last modified: 2018/02/18 18:01 by korshun