By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,529 Members | 864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,529 IT Pros & Developers. It's quick & easy.

chagning a number to american currency

P: 53
if you have any size number in a line of code how do you change it to AMerican currency?
Sep 13 '07 #1
Share this Question
Share on Google+
5 Replies


debasisdas
Expert 5K+
P: 8,127
kindly pass few more details on the problem.
Sep 13 '07 #2

P: 53
i have taken the height of a person in millimeter and times that by 6.34 percent to get a big number, now i need to change that big number to american currency
Sep 13 '07 #3

debasisdas
Expert 5K+
P: 8,127
i have taken the height of a person in millimeter and times that by 6.34 percent to get a big number, now i need to change that big number to american currency
I dont understand what is the logic.
why u need to convert height to currency.
Sep 13 '07 #4

P: 53
b\c the hight converted millimeters is going into a fake bank account so i need it to look like currency
Sep 13 '07 #5

kadghar
Expert 100+
P: 1,295
b\c the hight converted millimeters is going into a fake bank account so i need it to look like currency
yeah!! now we are talking.

use FormatCurrency function

lets say you have a Double called Dou1

Dou1 = 18318348477.283183

then FormatCurrency(dou1,2) = $ 18,318,348,477.28

or something like that
Sep 13 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.