如何将大整数值转换为字符串(以百万为单位) [英] How to convert Big integer value to string (as Million)

查看:495
本文介绍了如何将大整数值转换为字符串(以百万为单位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的列值为1008000000.0000。但是我希望在我的报告中以100万美元的价格显示它。请任何一次可以帮助我得出那个表达式。







谢谢,
Durga。

Hi,

I have a value from a column coming as 1008000000.0000. But i want to display it as $1 Million in my report. Please any once can help me with that expression to be derived.



Thanks,
Durga.

推荐答案

我的报告中有100万。请任何一次可以帮助我得出那个表达式。







谢谢,
Durga。
1 Million in my report. Please any once can help me with that expression to be derived.



Thanks,
Durga.


您应该通过检查它们的大小范围将它们转换为单词。读取数字,并将其转换为用户友好的字符串。



这个 [ ^ ]一篇博文有一个简单应用程序的源代码,用于获取数字数据,并将其转换为代表性字符串,跨越百万尺寸。了解转换过程和步骤对您有所帮助。
You should be converting them to words, by checking their range of size. Read the number, and convert it to a user-friendly string.

This[^] one blog post has the source code for a simple application to get the numeric data, and convert it to its representative string, spanning upto "million" of size. It would be helpfull for you for understanding the conversion process and steps.


这篇关于如何将大整数值转换为字符串(以百万为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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