Table of Contents

Method IsZero

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsZero(double)

Determines whether the specified double-precision floating-point value is equal to zero.

public static bool IsZero(double value)

Parameters

value double

The double-precision floating-point value to compare to zero.

Returns

bool

true if the specified value is considered equal to zero; otherwise, false.

Remarks

The comparison accounts for potential floating-point precision issues and considers values close to zero as equal to zero.

IsZero(float)

Determines whether the specified floating-point value is equal to zero.

public static bool IsZero(float value)

Parameters

value float

The floating-point value to compare to zero.

Returns

bool

true if the specified value is considered equal to zero; otherwise, false.

Remarks

The comparison accounts for potential floating-point precision issues and considers values close to zero as equal to zero.