I wanted to make an infinite loop where I take the number one and divide it by 2, it would keep doing this as long as the resulting number is a real number. I know that you can keep dividing a number an infinite amount of times but when I run my program it ends at a really small number rather than go on forever like if you were to make a loop where int=1 and while(int==1) the program just repeats and never ends
To be able to keep going on forever, you would need to be able to store a number with infinite precision, you can't do that, it would take an infinite amount of space. Eventually, it will just round down.