PHP数字格式问题 [英] PHP number format problem

查看:59
本文介绍了PHP数字格式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

存在大量问题.
<?php
$ present_value =''99999999999999999'';
回声number_format($ present_value,2)
?>

它给我结果10,000,000,000,000,000.00
我不想要它,我想要999,999,999,999,999,999.00

problem with large number..
<?php
$present_value=''99999999999999999'';
echo number_format($present_value,2)
?>

It gives me result 10,000,000,000,000,000.00
I dont want it , I want like 999,999,999,999,999,999.00

推荐答案

present_value =''99999999999999999'';
回声number_format(
present_value=''99999999999999999'';
echo number_format(


present_value,2)
?>

它给我结果10,000,000,000,000,000.00
我不想要它,我想要999,999,999,999,999,999.00
present_value,2)
?>

It gives me result 10,000,000,000,000,000.00
I dont want it , I want like 999,999,999,999,999,999.00


试试这个
number_format(
Try this
number_format(


这篇关于PHP数字格式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆