On my Mac if I perform certain numerical computation in Scala, I get a result of -0.0.
Is this a Scala feature, or a feature of the particular jvm I’m using, or is this a feature of the
processor the Mac is using for floating point computation?
Am I safe on any architecture to suppose that -0.0 == 0.0
? It seems anecdotally to be the case for me.