Convert the specified value to an int scalar
n - the value to apply this function to.
An int scalar.
$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