阅读背景:

更改为货币格式的最佳方法是什么?

来源:互联网 

I have a list of values such as "12000","12345","123456" that need to be converted to currency ("120.00", "123.45", "1234.56"). The only way I know is to convert the value to a string, copy the first strlen()-2 characters to one string (dollars) and the remainging two digits to another string(cents) and then write them as the following:I have a list of values such as "12000","12345"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: