next up previous contents
Next: LOG10 Base-10 Logarithm Function Up: Mathematical Functions Previous: GAMMALN Log Gamma Function   Contents

Subsections

IDIV Integer Division Operation

Usage

Computes the integer division of two arrays. The syntax for its use is

   y = idiv(a,b)

where a and b are arrays or scalars. The effect of the idiv is to compute the integer division of b into a.

Example

The following examples show some uses of idiv arrays.

--> idiv(27,6)
ans = 
  <int32>  - size: [1 1]
             4  
--> idiv(4,-2)
ans = 
  <int32>  - size: [1 1]
            -2  
--> idiv(15,3)
ans = 
  <int32>  - size: [1 1]
             5


Samit K. Basu 2005-03-16