int

Synopsis

$ int(n)

Convert the specified value to an int scalar

Parameters

n - the value to apply this function to.

Returns

An int scalar.

Examples

$value = int(12.456); println("Integer value is $value"); $value = int(-12.456); println("Integer value is $value"); $value = int(10 / 3); println("Integer value is $value");

Integer value is 12 Integer value is -12 Integer value is 3

See Also