Solved

Help formatting a Money value.

Posted on 2015-02-04
2
97 Views
Last Modified: 2015-02-04
I have a money data type I'm reading from a table.   I want to format to string, using two decimal places.  I do not want the trailing zero dropped.  And I want a comma every three places.   Add optionally add the $.

For example:   $3,120,456.50
0
Comment
Question by:HLRosenberger
2 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 40589730
You can use the FormatCurrency function.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 40589742
Thanks!  that works great; I was previously not aware of it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question