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

Money Datatype - Four Decimal Places...

Status
Not open for further replies.

Rebies

Programmer
Mar 7, 2002
58
0
0
US
It is really annoying that the money and smallmoney datatypes store four decimal places. Is there an easy way to only have it store two decimal places?

Currently I'm converting the datatype every time I use it because my applications only use and need two decimal places (like most everyday things)

Convert(varchar(50), MyOwnPrice, 1) AS MyOwnPrice

Thanks for any advise.

Andrew
 
You can't change the storage type or format. Formatting for display is the function of the front-end program not the database.

See faq183-3007 - "Why Does SQL Server Display My Data Like That?"
If you want to get the best answer for your question read faq183-874 and faq183-3179.
Terry L. Broadbent - DBA
SQL Server Page:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top