is_zero#

static MathUtils.is_zero(x: float, eps: float = 2.220446049250313e-15) bool#

Check if a number is close to zero within a small epsilon tolerance.

Parameters:
x: float

Number to check.

epsfloat

Tolerance for the comparison. Default is EPSILON.

Returns:
bool

True if the number is numerically zero, False otherwise.