NumericIsZeroTNumeric Method
Returns if x equals 0. Equivalent to checking whether
x equals default.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static bool IsZero<TNumeric>(
TNumeric x
)
where TNumeric : struct, new(), INumeric<TNumeric>
Public Shared Function IsZero(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
x As TNumeric
) As Boolean
public:
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static bool IsZero(
TNumeric x
)
static member IsZero :
x : 'TNumeric -> bool when 'TNumeric : struct, new() and INumeric<'TNumeric>
- x TNumeric
- The number to test for equality to 0.
- TNumeric
- The type of number to test.
Boolean if
x equals
0; otherwise