Compiler Library/XL Reference Manual (32650-90029)
2- 15
Error: If the argument is a NaN, there are two
possible actions. If the INVALID trap is
enabled, the message "DINT(X) OR DDINT(X):
X=NaN" occurs. Otherwise, the INVALID flag is
set. In either case, a quiet NaN is returned.
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.
DEXP (or DEXP')
DEXP calculates
ex
, where
x
is a longreal number.
Declaration
FUNCTION DEXP(VAR x:LONGREAL):LONGREAL; EXTERNAL;
Accuracy
Attributes
Parameter: A representable longreal number in the range
[-708.396418532264, 709.782712893384]. See
Chapter 1 for details on the internal
representation of real numbers.
Result: A representable positive longreal number.
HP FORTRAN 77/XL: Intrinsic function: Y=DEXP(X).
Error: If the argument is a NaN, there are two
possible actions. If the INVALID trap is
enabled, the message "DEXP(X): X=NaN" occurs.
Otherwise, the INVALID flag is set. In either
case, a quiet NaN is returned.
If the argument is >= 709.78271289338397 the
message "DEXP(X) OVERFLOW" occurs and the
result is infinity. If the argument is <=
-708.39641853226408 the message "DEXP(X)
UNDERFLOW" occurs and the result is set to
zero.
When x-y ~ ∈ , maximum f-g ~ ∈
f