FloatExtensions.IsZero

Extension Method in FloatExtensions

Declaration

public static bool IsZero(this float value, float epsilon = 1.401298E-45F)

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.