Overview¶
| Function | Description |
|---|---|
is_close_zero | Check if a given floating-point value is close to zero within a small tolerance. |
Functions¶
is_close_zero [source]¶
def is_close_zero(value: float, abs_tol = 1e-15) -> boolCheck if a given floating-point value is close to zero within a small tolerance.
Parameters:
| Name | Type | Description |
|---|---|---|
value | float | The floating-point value to check. |
Returns:
bool — True if the value is close to zero, False otherwise.