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

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?