HP 3000 Manuals

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


Compiler Library/XL Reference Manual

IFIX (or IFIX') 

IFIX truncates a real number to a shortint number.

Declaration 

        FUNCTION IFIX(x:REAL):SHORTINT; EXTERNAL;

Attributes 

Parameter:                A representable real number in the range
                          [-32768.0, 32767.0].  See Chapter 1 for details
                          on the internal representation of real numbers.

Result:                   An integer number.

HP FORTRAN 77/XL:         Intrinsic function:  I=IFIX(X).

Error:                    If traps are enabled and if the real number is
                          outside the range stated, the arithmetic trap
                          INTEGER OVERFLOW occurs.



MPE/iX 5.0 Documentation