Home > Backend Development > PHP Tutorial > 1/1000000,该怎么处理

1/1000000,该怎么处理

WBOY
Release: 2016-06-13 13:27:53
Original
1046 people have browsed it

1/1000000
怎么计算这个结果?
怎么才能让它等于0.000001

------解决方案--------------------
我猜他是想不输出科学计数...

PHP code

echo sprintf("%f",1/1000000);
<br><font color="#e78608">------解决方案--------------------</font><br>不精确,用gmp,bc <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
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