Optimization: Is it faster to multiply a float by an integer or another float

后端 未结 0 1983
执念已碎
执念已碎 2020-12-21 12:43

If I am trying to multiply a float by a whole number is it faster to multiply it by a whole number being represented by an integer

int x;
...
float y = 0.5784         


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