Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Kornfeld Eliyahu Peter 18-Nov-14 9:04am    
You will have to write your own algorithm - in SQL or code...
There is nothing built-in

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900