3 ms·
careful parseFloat("08") === parseFloat("09") === 0 http://stackoverflow.com/questions/850341 http://stackoverflow.com/questions/850341
by VMG 15y ago
careful
parseFloat("08") === parseFloat("09") === 0
http://stackoverflow.com/questions/850341 http://stackoverflow.com/questions/850341
- cdsanchez 15y agoThat 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.
- VMG 15y agowhoops, got out of bed too early
- mikemaccana 15y agoOh that's neat. Thankyou.
- deleted 15y ago[deleted]