Div - script and chart function
Div() returns the integer part of the arithmetic division of the first argument by the second argument. Both parameters are interpreted as real numbers, that is, they do not have to be integers.
Syntax:
Div(integer_number1, integer_number2)
Return data type: integer
Examples and results:
Examples | Results |
---|---|
Div( 7,2 ) |
Returns 3 |
Div( 7.1,2.3 ) |
Returns 3 |
Div( 9,3 ) |
Returns 3 |
Div( -4,3 ) |
Returns -1 |
Div( 4,-3 ) |
Returns -1 |
Div( -4,-3 ) |
Returns 1 |