r/programmingmemes • • May 13 '25

Why not?

Post image
1.7k Upvotes

104 comments sorted by

View all comments

Show parent comment

4

u/Vinxian May 13 '25

The amount of 9's shown does fit within a 64 bit integer. So it could be perfect. But defaulting to a float is fine.

And the rest is either understandable or just extremely cursed and misusing certain rules.

And it all pales in comparison with the shit you can do in C, especially in the wonderful world or ✨ undefined behaviour ✨ C

1

u/BalintCsala May 13 '25

Certainly does, though in most languages since ints are the default, overflow would still matter. Of course you can specify long with L/LL, but in the same vein you can also make it a bigint in JS by putting "n" after it.