Posted by mpaine on 11/20/06 20:50
I should have been more specific:
DECLARE @A int
DECLARE @B int
DECLARE @C float
SET @A = 1
SET @B = 26
SET @C = @A / (@A + @B)
PRINT @C
mpa...@htxml.com wrote:
> Why does this T-SQL round incorrectly?
>
> PRINT 1/(1+26)
>
> when it should be 0.037037037?
>
> Thanks,
> Michael
Navigation:
[Reply to this message]
|