Why converting result of multiplication of float to int fails?

后端 未结 0 1304
逝去的感伤
逝去的感伤 2020-12-06 16:46

I have come with a problem with programming language.

//php
$a = (int) (10.20 * 100);
echo $a; 
// expected output: 10         


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