IsAlmostZero Method


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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2021

Syntax

C#
public static bool IsAlmostZero(
	double value
)
Visual Basic
Public Shared Function IsAlmostZero ( _
	value As Double _
) As Boolean
Visual C++
public:
static bool IsAlmostZero(
	double value
)

Parameters

value
Type: SystemDouble
The value to check.

Return Value

True if value is almost zero, false otherwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The given value for value is not finite

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →