Today, along with learning about how JavaScript uses numbers, I am also learning how to eat a Kinder Joy, because, well, dinosaurs. I do like how I don't have to eat everything just to get at the prize. Because I want to play with my sinoceratops and dilophosaurus right now, dangit. Well, no. first I do JavaScript. Then I play with dinosaurs. JavaScript NumbersI do like that JavaScript has only one type of number and you don't have to differentiate between those with decimals and those without. The scientific notation ones will get me, but that's because I never really immediately get those anyway. Like, sure, in Animal Crossing: New Horizons, I might have 785e5 bells, but 78,500,000 just looks better, doesn't it? But since it then shows me that integers are only accurate up to 15 digits, I suppose the scientific notation needs to come in. I mean, as much as I would love to have 7,000,000,000,000,000 bells, I also don't want my JavaScript maths to be inaccurate, so 7e15 will have to…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.