Article ID: 189390
Article Last Modified on 10/3/2003
declare
@a decimal(13,2),
@b decimal(13,2),
@c decimal(13,2),
@d decimal(13,2) /* This is the same equation as used to
calculate @a but multiplied by 1.00 */
select
@a=(-0.0)*(-0.0) , @b = (-0.00) * (-0.0),
@c = (-0.0) * (-0.00), @d = 1.00 * (-0.0)*(-0.0)
select @a, @b, @c, @d
select
@a=(-1.0)*(-0.0), @b = (-1.00)*(-0.0),
@c = (-1.0)*(-0.00), @d = 1.00 * (-1.0)*(-0.0)
select @a, @b, @c, @d
select
@a= -0.0*(-0.0), @b = -0.00 *(-0.0),
@c = -0.0 * (-0.00), @d = 1.00 * -0.0*(-0.0)
select @a, @b, @c, @d
select
@a= (-0.0)*-0.0, @b = (-0.00)*-0.0,
@c = (-0.0)*-0.00, @d = 1.00 * (-0.0)*-0.0
select @a, @b, @c, @d
Results:
@A @B @C @D ----------------- ----------------- ----------------- ----------------- 0.00 0.00 0.00 0.00 ----------------- ----------------- ----------------- ----------------- -0.00 0.00 0.00 0.00 ----------------- ----------------- ----------------- ----------------- 0.00 0.00 0.00 0.00 ----------------- ----------------- ----------------- ----------------- -0.00 0.00 0.00 0.00
Additional query words: wrong incorrect positive
Keywords: kbbug kbpending KB189390