Home  >  Article  >  Backend Development  >  保存价格.00

保存价格.00

WBOY
WBOYOriginal
2016-06-13 11:57:35792browse

保留价格.00

本帖最后由 xiaopeng0803 于 2014-05-19 11:45:06 编辑
 $price = "98.00";<br />$num   = 2;<br />$total = $price * $num;<br />

如何$total保留.00?
------解决方案--------------------
number_format 这个函数可以实现
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