summary refs log tree commit diff stats
path: root/tests/float/tfloat4.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fixed parsing of float literals.Reimer Behrends2014-05-231-0/+42
Float literals were not parsed properly when their fractional part exceeded 53 significant bits. This affected in particular math.PI and math.E. Rather than reinventing the wheel, this patch reuses C's strtod() implementation, which already does the heavy lifting with respect to correctness, though some caution is necessary to keep float parsing locale-independent.