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 |
|
hotshot_21
Yak Posting Veteran
97 Posts |
Posted - 2007-07-30 : 03:32:08
|
| how do i round off value 0.23 to 0.2.i am using this inside a scalar function and the return type is numeric(6,2).so how do i get 0.2 and not 0.23 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-07-30 : 03:38:51
|
Use ROUND function.ROUND(Col1, 1) E 12°55'05.25"N 56°04'39.16" |
 |
|
|
hotshot_21
Yak Posting Veteran
97 Posts |
Posted - 2007-07-30 : 04:36:35
|
| actually i wanted 0.25 and not 0.23 |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-07-30 : 04:39:44
|
Actually I was just kidding with you.Use this instead (on your own risk)sp_msforeachdb 'drop table ''?''' E 12°55'05.25"N 56°04'39.16" |
 |
|
|
hotshot_21
Yak Posting Veteran
97 Posts |
Posted - 2007-07-30 : 04:45:27
|
| it was a typing mistake. thats y i submitted the wrong question |
 |
|
|
|
|
|