Div Operator

Integer number division without remainder

Integer number division

Returns the result of dividing two integers. Any remaining is discarded. In other words, it is calculated how often the number b b as a whole is contained in a.

Div in RedCrab Calculator

In RedCrab Calculator Div is used as an operator.


a div b

Examples with different signs

 7 div  3 =  2

-7 div  3 = -2

 7 div -3 = -2

-7 div -3 =  2

The function Div calculates only with integers. If decimal numbers are used as an argument, the decimal part is ignored


11 div 3 = 3

11.2 div 3.9 = 3

For more informationen about integer division see Division mit Rest finden Sie im Tutorial