Why does the result of modulus operator with continued fractions differ when I use variables and differ for different compilers?

后端 未结 0 820
孤城傲影
孤城傲影 2021-02-20 03:39

I have some code that produces different results depending on what compiler I use:

float a = 1f;
float b = 6f;
float result = a % (a / b);
float result1 = 1f % (1         


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