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 |
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2013-02-25 : 02:35:27
|
I am doingdeclare @temp money,@numdays intselect @numdays=35select @temp=@numdays/30 select @temp as tempit's returning 1 but it should return 1.1666what do I need to do to return it as a money or float?num days will always be a integer but dividing it by 30 should not |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2013-02-25 : 03:01:20
|
take 30.0 instead of 30 Too old to Rock'n'Roll too young to die. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|