Skip to main content

COMPARE_EPSILON

Constant COMPARE_EPSILON 

Source
pub const COMPARE_EPSILON: f32 = 0.00001;
Expand description

EEL2’s comparison epsilon: == is true within this, and != outside it.

Not a tolerance we chose — it is part of the language, and a preset written against it (equal(x, 0) after arithmetic that lands near zero) reads differently under an exact comparison.