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 |
nayanancha
Starting Member
27 Posts |
Posted - 2012-05-08 : 14:52:24
|
I am having a value like 22.1234231I want to limit this value to two places after decimal, but donn want to round.How could i do this?I would like the output to be as 22.12Thanks, |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2012-05-08 : 15:23:06
|
This will truncate everything after the 2nd decimalselect floor(@f*100)/100.0JimEveryday I learn something that somebody else already knew |
 |
|
|
|
|