Percise rounding parsing octal and hexadecimal strings.
authorserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Mar 2010 15:46:58 +0000 (15:46 +0000)
committerserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 29 Mar 2010 15:46:58 +0000 (15:46 +0000)
commit9e76d99fb93eb03e383b41e6198c6499f7553eed
tree83cae3ef2e27b8284767c95219cbb8c9c49e712f
parent08ed4504f6b896ae474ee538bee5b00356e87432
Percise rounding parsing octal and hexadecimal strings.

Rounding happens when the number exceeds 53 bits of floating point mantissa. Current implemetation ignores digits after some limits. 0x1000000000000081 was rounded to 0x1000000000000100 while 0x100000000000008000001 was rounded to 0x100000000000000000000.

Review URL: http://codereview.chromium.org/1374005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4309 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/conversions.cc
test/mjsunit/number-tostring.js
test/mjsunit/str-to-num.js