php整数转小数点
<?php $number = 1024; $res = sprintf("%.2f", $number); echo $res;
运行示例:http://www.apizl.com/dev/runCode/cfc5853a6f59e4ddc3e6186a38c2554c.html
关键字词:
php整数转小数点
<?php $number = 1024; $res = sprintf("%.2f", $number); echo $res;
运行示例:http://www.apizl.com/dev/runCode/cfc5853a6f59e4ddc3e6186a38c2554c.html