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

php-请教PHP的floor函数问题

WBOY
WBOYOriginal
2016-06-02 11:33:271032browse

php

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

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

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