In C ++, for example, fmod(-2,2) returns -0 . The expression -0 == 0 true, but the bit is different. What is the purpose of having something like -0 , which should be 0 , but presented differently? Is -0 in the same way as 0 in any calculations?
c ++ floating-point
Danvil
source share