Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
VMG
· 14y ago · 0 comments
careful
parseFloat("08") === parseFloat("09") === 0
http://stackoverflow.com/questions/850341
Comments
[–]
cdsanchez
14y ago
That only applies to parseInt because it tries to guess the radix if one isn't supplied. parseFloat assumes base 10 and doesn't accept a radix argument.
[–]
mikemaccana
14y ago
Oh that's neat. Thankyou.
[–]
VMG
OP
14y ago
whoops, got out of bed too early