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

Convert Money in SQL

Status
Not open for further replies.

JBourne77

IS-IT--Management
Jan 21, 2008
153
US
I need some assistance converting or casting my money fields in SQL.

My field:

pva.OrigInsAllocation + pva.OrigPatAllocation AS [Total Charges]

Current Results:
500.00
29125.00
662.00

Desired Output
50000
2912500
66200

I tried

Code:
CAST(  (pva.OrigInsAllocation + pva.OrigPatAllocation ) * 100  as Bigint )  AS [Total Charges]

but it changed 29125.00 to 2912500.00. How do I chop off the .00 on each?
 
Please disregard this post, I had a value declared wrong in my temp table that conflicted with this. Issue resolved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top