summary refs log tree commit diff stats
path: root/lib/pure/pegs.nim
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2014-05-23 11:27:39 +0200
committerReimer Behrends <behrends@gmail.com>2014-05-23 11:27:39 +0200
commit8b8a21cb592cdff15d8e448945b3d019eab42564 (patch)
treeac908ca182c170c32cecc1014d161de850bc67c0 /lib/pure/pegs.nim
parentb54f66eeff4c9977a7e855f9f310216f59729860 (diff)
downloadNim-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