SIGN (or SIGN') [ Compiler Library/XL Reference Manual ] MPE/iX 5.0 Documentation
Compiler Library/XL Reference Manual
SIGN (or SIGN')
SIGN calculates the absolute value of the first real number and gives the
number the sign of the second real number.
Declaration
FUNCTION SIGN(x,y:REAL):REAL; EXTERNAL;
Attributes
Parameters: Both arguments are real numbers; if the second
number is zero, the sign is assumed to be
positive.
Result: A real number.
HP FORTRAN 77/XL: Intrinsic function: Z=SIGN(X,Y).
Error: If either of the arguments is a NaN, there are
two possible actions. If the INVALID trap is
enabled, the message "SIGN FUNCTION: ANY
ARGUMENT=NaN" occurs. Otherwise, the INVALID
flag is set. In either case, a quiet NaN is
returned.
MPE/iX 5.0 Documentation