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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick and easy question about the Currency data type 1

Status
Not open for further replies.

Magnus53

Programmer
Jul 25, 2002
73
CA
Hi everyone

Sorry for asking this again if it's already been asked before.

I have a a online ordering apllication that i'm modifying to use a 3rd party credit card processing system. The transaction amount is stored as a Currency data type. When testing today I noticed that the cent velaue gets truncated if it's a even dollar amount, such as $40.00. It'll get truncated to $40. I have to have the cent amount.

Is this the default behaviour for the Currency data type? Is there anyways to change this easily? Or should I just change the type?


Thanks
 
look into the format function

format(myCurrency,"#000.00") or something like that, no time to test


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top