I can't seem to figure out this question:(adsbygoogle = window.adsbygoogle || []).push({});

N = 1;

while N < N + 1

N = N*10

end

All variables are IEEE double precision. Will the code above result in an infinite loop?

I believe this will be a infinite loop because the value N is always going to be compared to a value 1 unit greater than itself, but what does that its double precision have to do with anything?

Thanks,

Darthxepher

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab! HELP! Infinite Loop.

**Physics Forums | Science Articles, Homework Help, Discussion**