# find largest floating point number eps such that # eps is beyond the precision of the mantissa for a # converted integer # for ECS 10, Spring 2009, April 13, 2009 # Matt Bishop # start here eps = 1.0; # Now loop until adding it to 1 makes no difference while (1.0 != 1.0 + eps): eps = eps / 2.0; # print as you go print "eps =", eps; # Announce success and quit print "GOT IT -- eps =", eps