With the loop below, is there a way to display the actual number without the leading zeros (scientific notation) or will it just display 0 since there are so many leading zeros?
1 2 3 4 5 6 7 8 9 10
num = 1;
while (num > 0)
{
num /= 2;
}
cout << num;
Well the book I am studying from asks to write a short program to determine the smallest number, x_min, used on the computer you are using. Note that your computer will be unable to reliably distinguish between zero and a quantity that is smaller than this number.
> determine the smallest number, x_min, used on the computer you are using.
> Note that your computer will be unable to reliably distinguish between zero
> and a quantity that is smaller than this number.
Determining an approximate answer computationally is not too difficult.