How can we correctly determine if two floating point variables are equal?

前端 未结 0 1437
渐次进展
渐次进展 2021-02-14 04:32

I\'m doing a quiz and I wonder if I can correctly determine it. These are options:

See if a == b is true
Check if a - b == 0 is true
Check if ((a-b)*(a-b))/(a*a +         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题