isEven

Summary

Checks if the number is an even number.

Usage

public bool isEven()

Returns

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

Description

Checks if the number is an even number. (2, 4, 6, 8, etc.)

Examples

Basic Usage
1
2
3
4
5
import System;
 
signed byte x = 2, y = 3;
Console.log(x.isEven()); // true
Console.log(x.isEven()); // false

Share

HTML | BBCode | Direct Link