Home / Maths for AI / Symbols / Arithmetic and comparison

Approximately equal

Say it: "is approximately", "is about"

What it means

a≈ba \approx b means aa and bb are close but not exactly equal.

Example

π≈3.14159,e≈2.71828\pi \approx 3.14159, \quad e \approx 2.71828

Both have infinitely many decimals.

In code

import math
print(round(math.pi, 5), round(math.e, 5), math.isclose(0.1 + 0.2, 0.3))

Output

3.14159 2.71828 True

Where it appears in machine learning

Floating-point results are approximate; tests compare them with a tolerance, never with ==.

Related symbols

Learn it properly in the free lesson Numerical Stability, with practice questions that check your answers.