Home  >  Article  >  Backend Development  >  php中ceil的bug在哪

php中ceil的bug在哪

WBOY
WBOYOriginal
2016-06-23 13:22:561172browse

<?php<br />$a=1.09;<br />$b=$a*100;<br />echo $a*100;<br />echo '<br>';<br />echo $b;<br />echo '<br>';<br />echo ceil($a*100);<br />echo '<br>';<br />echo ceil($b);<br />?><br /><br /><br />//109<br />109<br />110<br />110<br />ceil函数的bug在哪?<br />类似的还有1.1,1.10,1.11,1.12


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:js里写php代码Next article:php开源产品