NumericIsZeroTNumeric Method

Returns if x equals 0. Equivalent to checking whether x equals default.

Definition

Namespace: Jodosoft.Numerics
Assembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static bool IsZero<TNumeric>(
	TNumeric x
)
where TNumeric : struct, new(), INumeric<TNumeric>

Parameters

x  TNumeric
The number to test for equality to 0.

Type Parameters

TNumeric
The type of number to test.

Return Value

Boolean
if x equals 0; otherwise

See Also