HP 3000 Manuals

HPFPCONVERT (new) [ Introduction to MPE XL for MPE V Programmers Migration Guide ] MPE/iX 5.0 Documentation


Introduction to MPE XL for MPE V Programmers Migration Guide

HPFPCONVERT 
(new) 

The HPFPCONVERT intrinsic converts data between MPE XL and MPE V/E binary
floating-point formats.  It accepts a source binary floating-point number
and converts it to the equivalent destination binary floating-point
number in the other MPE format.  You must specify the format of the
source and destination numbers.  You have the option of specifying the
rounding mode.

The source number must be a floating-point number, not a constant.  The
conversion is performed by regarding the source number as infinitely
precise and with unbounded range, and then rounding it to fit the
designated destination format.  Rounding is performed according to the
formal rules for the rounding mode specified.  Rounding methods and
exception signaling are determined solely from the destination format and
are independent of the source format.

Conversion is performed as if all arithmetic traps are disabled.  No
trapping to user-supplied or system-supplied arithmetic trap routines is
done.

The status parameter, a 32-bit signed integer passed by reference is
optional, but recommended.  It indicates status in two fields.  One
reports the presence of errors and warnings, and the other indicates
their source.  If an error or warning condition is encountered, and you
did not specify the status parameter, HPFPCONVERTcauses the calling
process to abort.  Using the status parameter in MPE XL is analogous to
using condition codes in MPE V/E.

The optional parameter exceptions, a 16-bit signed integer passed by
reference, returns any exception conditions that occurred during
conversion:  none, inexact, underflow and overflow, and invalid operation
(NaN).


NOTE HPFCONVERT is available only on MPE XL-based systems.


MPE/iX 5.0 Documentation