ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:parsefixed

Differences

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

Link to this comparison view

Next revision
Previous revision
functions:parsefixed [2017/03/21 16:03] – created korshunfunctions:parsefixed [2017/03/21 20:30] (current) korshun
Line 6: Line 6:
  
 ===== Description ===== ===== Description =====
-Parses s as a real in the specified base. If base is 0, base 10 is used by default and prefixes like ''0x'' are allowed+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.
- +
-Returns status and result.+
  
 See [[:Number parsing]] for features and examples. See [[:Number parsing]] for features and examples.
 +
 +<note important>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.
 +</note>
 +
functions/parsefixed.1490104997.txt.gz · Last modified: 2017/03/21 16:03 by korshun