I'm performing some analysis on some data. I'm summarising data using variables and then performing calculation on the variables.
@var1 int
@var2 int
@var3 float
calculation: @var3 = cast @var1 as float/cast @var2 as float
the values (in this instance) are 6/45 (var1 & 2 respectively).
The result is var3 = 13.33334
I want (need) it to be 0.133334 (i.e. correct)
Can anyone shed any light??
@var1 int
@var2 int
@var3 float
calculation: @var3 = cast @var1 as float/cast @var2 as float
the values (in this instance) are 6/45 (var1 & 2 respectively).
The result is var3 = 13.33334
I want (need) it to be 0.133334 (i.e. correct)
Can anyone shed any light??