Next: , Previous: most-positive-short-float; least-positive-short-float; least-positive-n+, Up: Numbers


short-float-epsilon, short-float-negative-epsilon, single-float-epsilon, single-float-negative-epsilon, double-float-epsilon, double-float-negative-epsilon, long-float-epsilon, long-float-negative-epsilon (Constant Variable)

Constant Value:

implementation-dependent.

Description:

The value of each of the constants short-float-epsilon, single-float-epsilon, double-float-epsilon, and long-float-epsilon is the smallest positive float ε of the given format, such that the following expression is true when evaluated:

(not (= (float 1 ε) (+ (float 1 ε) ε)))

The value of each of the constants short-float-negative-epsilon, single-float-negative-epsilon, double-float-negative-epsilon, and long-float-negative-epsilon is the smallest positive float ε of the given format, such that the following expression is true when evaluated:

(not (= (float 1 ε) (- (float 1 ε) ε)))