qc.Math.isOdd

Prototype

  • boolean isOdd(value)

Paramters

Paramter Type Description
value number The number to check.
return boolean True if the given number is odd. False if the given number is even.

Description

Returns true if the number given is odd.

Example

    // return true
    var ret = game.math.isOdd(3);