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!

Decimal Data Type

Status
Not open for further replies.

eselhassan

Programmer
Aug 22, 2003
23
0
0
US
Hello all,

I have a decimal data type in my table that holds financial data. I setup the scale to 2, so it holds the decimal places. SQL for some reason kept rounding up. How do I display the data as is. Example, 125.89 display as 126.00
Should I use 'money' data type rather than the decimal data type?
Any help is greatly appreciated.
 
smallmoney or money should be used but there are some pitfalls as I recall. still trying to dig that post up. Will relay once I find it.

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top