[back] [prev] [next] [index] [root]

 


IntQuo

Returns the integer quotient of two integers.

Syntax:

q := IntQuo(a, b);

integer
  q  
integer
  a  
integer
  b  

Description:

Returns q of a=q*b+r subject to |r|<|b|. The integer b must not be zero.


Example:


kash> IntQuo(20, 3);
6
kash> IntQuo(-20, 3);
-7
kash> IntQuo(20, -3);
-7
kash> IntQuo(-20, -3);
> 6


<- back[back] [prev] [next] [index] [root]