IsAlmostZero Method


Math Comparison Utils Is Almost Zero Method

Checks if value is almost zero, using the internal tolerance.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsAlmostZero(
	double value
)

Parameters

value Double
The value to check.

Return Value

Boolean
True if value is almost zero, false otherwise.
Exceptions
Exception Condition
ArgumentException The given value for value is not finite
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →