HP 3000 Manuals

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


Compiler Library/XL Reference Manual

DREM (or DREM') 

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

Declaration 

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

Attributes 

Parameters:               Both arguments are integer numbers.

Result:                   An integer number (the remainder only).

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

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



MPE/iX 5.0 Documentation