Integer Math.Is Odd Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
IsOdd( | Returns whether an integer is odd. |
IsOdd( | Returns whether an integer is odd. |
IsOdd( | Returns whether an integer is odd. |
IsOdd( | Returns whether an integer is odd. |
IsOdd( | Returns whether an integer is odd. |
IsOdd(BigInteger)
Returns whether an integer is odd.
public static bool IsOdd(
BigInteger n
)
Parameters
- n BigInteger
- A BigInteger number.
Return Value
Booleantrue if the number is odd; false otherwise.
IsOdd(Decimal)
Returns whether an integer is odd.
public static bool IsOdd(
this decimal n
)
Parameters
Return Value
Booleantrue if the number is odd; false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Decimal. 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).IsOdd(Int16)
Returns whether an integer is odd.
public static bool IsOdd(
this short n
)
Parameters
- n Int16
- A 16-bit integer.
Return Value
Booleantrue if the number is odd; false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Int16. 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).IsOdd(Int32)
Returns whether an integer is odd.
public static bool IsOdd(
this int n
)
Parameters
- n Int32
- A 32-bit integer.
Return Value
Booleantrue if the number is odd; false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Int32. 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).IsOdd(Int64)
Returns whether an integer is odd.
public static bool IsOdd(
this long n
)
Parameters
- n Int64
- A 64-bit integer.
Return Value
Booleantrue if the number is odd; false otherwise.