Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Integer

Source

int INT_MAX

Source

int INT_MIN

Source

function int.abs() returns int

Source

Returns the absolute value of this int

function int.bitAnd(int other) returns int

Source

Returns the result of a bitwise AND operation performed on this int and the argument int.

function int.bitOr(int other) returns int

Source

Returns the result of a bitwise OR operation performed on this int and the argument int.

function int.bitXor(int other) returns int

Source

Returns the result of a bitwise exclusive OR operation performed on this int and the argument int.

function int.clamp(int lowerBound, int higherBound) returns int

Source

Limits this int to the given range

function int.isBetween(int low, int high) returns boolean

Source

Checks if this int is between low and high value

function int.isEven() returns boolean

Source

Checks whether this int is even.

function int.isOdd() returns boolean

Source

Checks whether this int is odd.

function int.lerp(int target, real alpha) returns int

Source

Linear Interpolation with alphafactor(smoothness)

function int.pow(int x) returns int

Source

Returns this int to the power of the argument int

function int.sign() returns int

Source

returns the sign of the int

function int.squared() returns int

Source

Returns the square of this int

function int.toReal() returns real

Source

Returns the int as real

function int.toString() returns string

Source

Returns the string representation of this int