Integer division

x div y    div[x;y]

Returns the greatest whole number that does not exceed x%y.

q)7 div 3
2

q)7 div 2 3 4
3 2 1

q)-7 7 div/:\:-2.5 -2 2 2.5
2  3  -4 -3
-3 -4 3  2

Except for char, byte, short, and real, preserves the type of the first argument.

q)7f div 2
3f
q)6i div 4
1i
q)2014.10.13 div 365
2000.01.15

The exceptions are char, byte, short, and real, which get converted to ints.

q)7h div 3
2i
q)0x80 div 16
8i
q)"\023" div 8
2i