Thanks Kenny...I gave a program like this an attempt in the past, but had no
luck. Thanks for the code. :>)
Looks like one could change this line of code and get the same results:
ex = g * 0.999 + 1
Even this worked ok.
ex = g * 1 + 1
The result I get is:
Machine Epsilon is 2.22044604925031E-16
Which I think is the value of the last bit (Excel works with 15)
=2^(-52)
2.22044604925031E-16
Which agrees with mma on my system: :>)
$MachineEpsilon
2.220446049250313*^-16
Any value less than the result from this program is read
as zero on your machine. Machine Epsilon.
I am not an expert, but do you think it would be more correct to say that
Excel can store and work with numbers less than this. For example =3*1.1E-20
is ok. It is only during certain math operations that such a small number
is treated as zero. It is so confusing! :>)
Just to share an idea, here is mma's definition
?$MachineEpsilon
$MachineEpsilon gives the smallest machine-precision number which can be
added to 1.0 to give a result that is distinguishable from 1.0
(They are careful to say 1.0, as 1.0 is a machine number.)
Fun subject, but so confusing. :>)