number_format() [英] number_format()

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

问题描述

我已经意识到在我当前项目的其余部分中会出现令人头疼的事情。我不知道以前怎么没遇到过这个问题,但是让我给你举个例子:

I have realized something which is going to be a headache in the rest of my current project. I don''t know how I have not come across this before but let me show you an example:

展开 | 选择 | Wrap | 行号

推荐答案

字符串10,000在逗号转换回数字之前被切断。
the string "10,000" is cut before the comma while conversion back to number.


是的,在澳大利亚,我们正好相反。我怎么能改变它?
Yeah, well in Australia we''re the opposite. How can I change that?


抱歉,但是在number_format()....中没有使用语言环境(但在其他一些* _format()函数中)。更正了(再次阅读)。
sorry, but the locale isn''t used in number_format().... (but in some other *_format() functions). corrected that (read again).


这篇关于number_format()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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