Behaviour of negative zero (-0.0) in comparison with positive zero (+0.0)

前端 未结 4 1705
夕颜
夕颜 2020-12-05 15:43

In my code,

float f = -0.0; // Negative 

and compared with negative zero

f == -0.0f

res

4条回答
提交回复
热议问题