It’s because parseInt is expecting a string, so the decimal gets converted to a string, and 0.0000005.toString()
returns 5e-7
.
- 0 Posts
- 3 Comments
Joined 2 years ago
Cake day: September 8th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
danda@lemmy.zipto Games@sh.itjust.works•A Minecraft Movie breaks records to become highest opening video game movie of all timeEnglish44·3 months agoDon’t listen to the haters it was really good
??