HP 3000 Manuals

DDIV (or DDIV') [ Compiler Library/XL Reference Manual ] MPE/iX 5.0 Documentation


Compiler Library/XL Reference Manual

DDIV (or DDIV') 

DDIV calculates the quotient of one integer number divided by another
integer number.  See the description of the DREM procedure for the
remainder.

Declaration 

        FUNCTION DDIV(VAR d1,d2:INTEGER):INTEGER; EXTERNAL;

Attributes 

Parameters:               Both arguments are integer numbers.

Result:                   An integer number (the quotient only).

HP FORTRAN 77/XL:         Callable as a system intrinsic:  I = DDIV(J,K)

Error:                    If the parameter D2 equals zero, the arithmetic
                          trap INTEGER DIVIDE BY ZERO occurs if traps are
                          enabled.



MPE/iX 5.0 Documentation