Skip to content

Conversion

double( int ) double

Converts an integer to a floating-point number.

Example Usage:

var x = double(5); // 5.0

int( double ) int

Converts a floating-point number to an integer.

Example Usage:

var x = int(5.0); // 5

str( int/double ) string

Converts an integer or double to a string.

Example Usage:

var x = string(5); // "5"