Darwin Help

Back to Index

iquo

Function iquo


Calling Sequence  iquo(a,b)
Parameters
NameTypeDescription

a integer 
b integer 
Return Type  integer
Synopsis iquo returns the integer quotient between a and b. If b=0, a division by zero fault is generated. The result is truncated towards zero for both positive and negative results. Formally, iquo(a,b) = trunc(a/b).
Examples
> iquo(7,3);
2
> iquo(-3,2);
-1
> iquo(121,11);
11
See also ceil,   floor,   mod,   round,   trunc