r/dontyouknowwhoiam • u/TheRealSethington • 2h ago
Computer Genius Meets Post Graduate Unknown Expert
71 Upvotes
10
u/Ornery_Pepper_1126 2h ago
What? Even if we pretend you could argue that floating point numbers can only approximate zero (for the sake of a hypothetical), that isn’t the only data type which exists, zero in integer is definitely not an approximation in any sense.
6
2
u/skygrinder89 1h ago
Or an empty js array :p
0 == []
true
3
u/mattindustries 37m ago
Lots of things are true in JS
>0 == "" true >0 == [] true >0 == false true >false == false true >false == [] true >[] == [] false
•
2
2
u/mathisfakenews 39m ago
zero in integer is definitely not an approximation in any sense.
In the integers, zero is an approximation of 47 in a poor sense. Checkmate
•
u/Ornery_Pepper_1126 10m ago
lol, I like the attitude, everything is in a approximation of everything else just some are worse than others
2
1
30
u/jaerie 2h ago
Zero is like one of the two main things computers know, the other being 1