Skip to main content

IsZero(Single) Method

IsZero - Returns whether or not the float is "close" to 0. Same as AreClose(float, 0), but this is faster.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool IsZero(
float value
)

Parameters

  Single
The float to compare to 0.

Return Value

Boolean

See Also

Reference

MathUtilities Class
IsZero Overload
Avalonia.Utilities Namespace