floating-point number
A number stored as a sign, significant digits and an exponent, like scientific notation in base 2.
IEEE 754 double
The standard 64-bit floating-point format (1 sign bit, 11 exponent bits, 52 fraction bits) used by Python's float and Java's double.
precision
How many significant digits a format keeps: 53 bits, about 15 to 17 decimal digits, for a double.
rounding error
The difference between a true value and the nearest value the format can store.
machine epsilon
The gap between 1.0 and the next larger double, about 2.2 × 10⁻¹⁶ (sys.float_info.epsilon).
catastrophic cancellation
Losing most significant digits when subtracting two nearly equal numbers.
tolerance
An allowed difference used when comparing floats, e.g. math.isclose(a, b) or abs(a - b) < 1e-9.