Home > Backend Development > PHP Tutorial > php-请教PHP的floor函数问题

php-请教PHP的floor函数问题

WBOY
Release: 2016-06-02 11:33:27
Original
1038 people have browsed it

php

$money=271.29;
echo $money=floor($money*pow(10,2));
这个打印为什么是27129

$money=271.28;
echo $money=floor($money*pow(10,2));
为什么打印的结果是27127

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template