Viewing 2 posts - 1 through 2 (of 2 total)
following script doesn't go in infinite loop
DECLARE @i float,@rc int
set @i = 0
while @i <> 1
begin
set @i = @i + 0.8
set @i = @i + 0.1
set @i =...
August 27, 2010 at 4:13 am
#1212830
Hello All,
I'm not agree with explaination given.
"Floating point data is approximate (http://msdn.microsoft.com/en-us/library/ms173773.aspx). So an increment of 0.1 will never be equal to 1 and the exit condition @i...
August 27, 2010 at 3:58 am
#1212823