Returns a value indicating whether an integer is odd.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool IsOdd(
this long n
)
<ExtensionAttribute>
Public Shared Function IsOdd (
n As Long
) As Boolean
public:
[ExtensionAttribute]
static bool IsOdd(
long long n
)
[<ExtensionAttribute>]
static member IsOdd :
n : int64 -> bool
Parameters
- n
- Type: SystemInt64
A 64-bit integer.
Return Value
Type:
Booleantrue if the number is odd;
otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int64. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference