diff options
author | Reimer Behrends <behrends@gmail.com> | 2014-05-23 11:27:39 +0200 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2014-05-23 11:27:39 +0200 |
commit | 8b8a21cb592cdff15d8e448945b3d019eab42564 (patch) | |
tree | ac908ca182c170c32cecc1014d161de850bc67c0 /lib/pure/pegs.nim | |
parent | b54f66eeff4c9977a7e855f9f310216f59729860 (diff) | |
download | Nim-8b8a21cb592cdff15d8e448945b3d019eab42564.tar.gz |
Fixed parsing of float literals.
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.
Diffstat (limited to 'lib/pure/pegs.nim')
0 files changed, 0 insertions, 0 deletions