Home >Backend Development >PHP Tutorial >php retain decimal point_PHP tutorial

php retain decimal point_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 15:47:23881browse

$n=round(1.95583, 2);
This is the rounding method retaining 2 decimal places

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319995.htmlTechArticle$n=round(1.95583, 2); This is rounding to 2 decimal places...
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