Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Vinnie881
Master Smack Fu Yak Hacker
1231 Posts |
Posted - 2007-08-23 : 14:53:02
|
| This should be a relativly easy question, but I can not find the easy answer.If I have a Money Column, and my values are as followsMoneyCol---------12.235901.2991233.126600I want my results to be12.230001.290003.12000what is the best way to achieve this?Thanks |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-08-23 : 14:56:05
|
You mean you want to TRUNCATE the decimals? E 12°55'05.25"N 56°04'39.16" |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-08-23 : 14:56:25
|
declare @sample table (i money)insert @sampleselect 12.23590 union allselect 1.299123 union allselect 3.126600select i, round(i, 2, 1) from @sample E 12°55'05.25"N 56°04'39.16" |
 |
|
|
Vinnie881
Master Smack Fu Yak Hacker
1231 Posts |
Posted - 2007-08-23 : 14:59:43
|
| Works perfect.Thanks! |
 |
|
|
|
|
|