Comparison of 0.0 and -0.0
Due to the peculiarities of working with data in EO, an interesting quirk had been arising when comparing 0.0
and
-0.0.
The fact is that in EO, these two values were not considered equal until we made changes.
Until recently, the comparison of 0.0
and -0.0
in EO didn’t work like in other languages, but we changed that. This
short blog post provides a simplified explanation of number encodings, how such comparison takes place in popular
programming languages, and how we changed this comparison in EO to meet the standard.