DoubleExtensions.IsZero

Extension Method in DoubleExtensions

Declaration

public static bool IsZero(this double value, double epsilon = 4.94065645841247E-324)

Description

Checks if the value is zero given a margin of error specified by an epsilon.

Parameters

valueThe value to check.
epsilonThe margin of error.

Returns

boolTrue if the value is zero.