@trochee @hipsterelectron @ids1024 … wait, in what language/system is -0.0 == +0.0 false?
@trochee @hipsterelectron @ids1024 … wait, in what language/system is -0.0 == +0.0 false?
@trochee @hipsterelectron @ids1024 … wait, in what language/system is -0.0 == +0.0 false?
@trochee @steve @hipsterelectron @ids1024
I hate that standard so much!
@jbowen @trochee @hipsterelectron @ids1024 The worst computer arithmetic standard except for all the others!
Representations that allow negative zero can be a source of errors in programs, if software developers do not take into account that while the two zero representations behave as equal under numeric comparisons, they yield different results in some operations.
although really just using the equality operator on a floating point is almost never correct in the first place
@trochee @hipsterelectron @ids1024 in 754 arithmetic they compare equal
you are technically correct, the best kind of correct
but there is not much more chaotic evil in programming than provoking a bunch of bikeshedding
@trochee @hipsterelectron @ids1024 No mention of “Norway” as false?
@mdreid @hipsterelectron @ids1024
oh man, i wish i'd thought of that one; perhaps that's a better Chaotic Neutral