You must log in or register to comment.
If anyone’s wondering why:
>> 0.000005 0.000005
>> 0.0000005 5e-7
It’s because parseInt is expecting a string, so the decimal gets converted to a string, and
0.0000005.toString()
returns5e-7
.Another classic javascript wat
Classic people who don’t know how to code wat. Passing a number in place of a string argument because they don’t know what they’re doing.