逗号(,)分隔符的问题。 [英] Problems with comma(,) seperator.

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

问题描述

我必须将格式应用于我的货币价值。


我拥有的货币是 - >

1402000

15000

10000等等。


我想把它显示为--->

14,02,000

15,000

¥


我所做的是,

I have to apply a format to my currency value.

The currency i have is-->
1402000
15000
10000 and so on.

I want to display it as--->
14,02,000
15,000
10,000

What i''ve done is,

展开 | 选择 | Wrap | 行号

推荐答案

直接来自API文档:

Straight from the API documentation:


分组分隔符通常用于数千个,但是i在一些国家,它将成千上万的分开。分组大小是分组字符之间的固定位数,例如3表示100,000,000或4表示1,0000,0000。如果提供具有多个分组字符的模式,则最后一个和整数结尾之间的间隔是使用的间隔。所以#,##,###,#### ==" ######,####" ==" ##,####,####"。
The grouping separator is commonly used for thousands, but in some countries it separates ten-thousands. The grouping size is a constant number of digits between the grouping characters, such as 3 for 100,000,000 or 4 for 1,0000,0000. If you supply a pattern with multiple grouping characters, the interval between the last one and the end of the integer is the one that is used. So "#,##,###,####" == "######,####" == "##,####,####".



我发现最后一句话有点不足,因为它意味着你想要的东西不能用b $ b来完成。


亲切的问候,


Jos

I find the last sentence a bit of a deficiency because it implies that what you want
can''t be done.

kind regards,

Jos



Straight来自API文档:



我发现最后一句话有点不足,因为它意味着你想要的东西

无法完成。


亲切的问候,


Jos
Straight from the API documentation:



I find the last sentence a bit of a deficiency because it implies that what you want
can''t be done.

kind regards,

Jos



谢谢jos,是的,我忘了提到我读过文档而没有找到任何办法。如果有任何解决方法,请提出建议。


问候,


ajos。

Thanks jos, yes i forgot to mention that ive read the docs and didnt find any way. If there is any way around for this, kindly advice.

Regards,

ajos.



谢谢jos,是的,我忘了提到我读过文档并没有找到任何办法。如果有任何解决方法,请提出建议。


问候,


ajos。
Thanks jos, yes i forgot to mention that ive read the docs and didnt find any way. If there is any way around for this, kindly advice.

Regards,

ajos.



我用Google搜索了一下,但似乎没有黑客行为就无法完成;我发现的唯一

参考是关于这个类:com.ibm.icu.text.NumberFormat但是

我不认为你想要走这条路。标准的NumberFormat或

DecimalFormat类根本不能做你想要的(我发现有点

奇特)。对不起,没有我的食谱解决方案。


亲切的问候,


Jos

I googled a bit but it seems that it can''t be done without hacking; the only
reference I found was about this class: com.ibm.icu.text.NumberFormat but
I don''t think you want to go that route. The standard NumberFormat or
DecimalFormat classes simply can''t do what you want (which I find a bit
peculiar). Sorry, no cookbook solution from me.

kind regards,

Jos


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

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