isOdd

Summary

Checks if the number is an odd number.

Usage

public bool isOdd()

Returns

true if the number is odd or false if the number is even.

Description

Checks if the number is an odd number. (1, 3, 5, 7, etc.)

Examples

Basic Usage
1
2
3
4
5
import System;
 
unsigned int x = 1, y = 2;
Console.log(x.isOdd()); // true
Console.log(x.isOdd()); // false

Share

HTML | BBCode | Direct Link