Divide (whole number) | MATH_DIVIDE_INT

Syntax

MATH_DIVIDE_INT( [value], [other] )

Parameters

value
A number. If the value is not a NUMBER, the FLOAT operation will be used to convert it.

other
A number. If the value is not a NUMBER, the FLOAT operation will be used to convert it.

Return Value

Returns a number.

Description

Divide a value by another truncating the value to a whole number.

Examples

MATH_DIVIDE_INT(4, 2) # returns 2
MATH_DIVIDE_INT(null, null) # returns 0
MATH_DIVIDE_INT("-14", "7") # returns -2