¿Which is the smallest number that can be used in a variable of type float, and Which is the smallest number that can be used in a variable of type double?
Please do not give the answer with a number expressed in scientific notation
I am writing a simple program that must add the number 0.000000000000001 a given number of times.
something like that
Do While Cycles > 0
Cycles = Cycles - 1
Total = Total + 0.000000000000001
Strangely, the answer does not match what was expected. I was reducing the requirement...
When using a float to display a sales total I am using this to round the amount.
StoreTotal=Round(StoreTotal * 100) / 100
It seems to work fine until I get a 0 in the last decimal place so 99.99 works fine, however 99.90 will display as 99.9
When I was using a float also with this...