<?php
//echo 1111.11*100;
//echo intval(1111.11*100);
if(1111.11*100 == 111111) {
echo 'that is right';
}else {
echo 'that is wrong';
}
printf('%.20f',1111.11*100);
?>
页面的输出结果是that is wrong
<?php
//echo 1111.11*100;
//echo intval(1111.11*100);
if(1111.11*100 == 111111) {
echo 'that is right';
}else {
echo 'that is wrong';
}
printf('%.20f',1111.11*100);
?>
页面的输出结果是that is wrong