Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put decimal after last two digits in currency amount 3

Status
Not open for further replies.

obulldog27

Programmer
Apr 26, 2004
169
US
I have a text box where I enter currency amounts and I would like for a decimal to be placed after the last two numbers always automatically. I am using vb6.0 sp6.

example: $40015 ----> $400.15
 
Format(YourNumber, "$#.00")



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
So it is 100 times too big ... see if you can figure out what you need to do to YourNumber to get it to the correct scale ...
 
No its not homework. I am creating a simple application for a mobile home park company.
 
YourNumber * ?? = WhatYouWant



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
;-)



Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top