What value can be used for the QB64's Machine Epsilon for DOUBLE variables?
This would be a value such that the DOUBLE variable x value would be considered zero if the following criteria is met.
ABS(x) < EPSILON
From the Wiki article on Machine Epsilon,
https://en.wikipedia.org/wiki/Machine_epsilonwe get code that approximates this value to within a factor of two.
Translated into QB64 the code is:
epsilon = 1.0
WHILE (1.0 + 0.5 * epsilon
) <> 1.0 epsilon = 0.5 * epsilon
When this code is run on a Windows 10 64-bit computer using the 32-bit version of QB64, this value is computed.
epsilon = 1.192092895507812D-7