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 |
|
Vack
Aged Yak Warrior
530 Posts |
Posted - 2012-03-27 : 13:56:51
|
| I have a field with a value of 35.156price = 35.156If I do:cast(price as decimal (16,2)) it rounds and gives me 35.16 which I don't want. I want 35.15.If I do:cast(price as decimal (16,3)) it returns : 35.156Is there a way I can stop this from rounding or hack off the 6 from the 2nd example?I'm dealing with multiple records and values so subtracting .006 will not work for me. |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
Vack
Aged Yak Warrior
530 Posts |
Posted - 2012-03-27 : 13:59:38
|
| decimal(16,6) |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|