Home  >  Article  >  Backend Development  >  PHP does not have integer division, excel division, comprehensive division, division function

PHP does not have integer division, excel division, comprehensive division, division function

WBOY
WBOYOriginal
2016-07-29 08:53:001141browse

php does not have integer division

For example: 2/5=0.4 instead of 2/5=0

Although the bottom layer of php is implemented in C language, you really need to pay attention to this pitfall, especially when calculating some details, remember it!

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced that PHP does not have integer division, including PHP and division content. I hope it will be helpful to friends who are interested in PHP tutorials.

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