MPE/iX Intrinsics Reference Manual (32650-90875)
398 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPFPCONVERT
HPFPCONVERT
NM and CM callable.
Converts data between binary floating-point formats.
Syntax
* * I16V I16V
HPFPCONVERT(
source,destination,sformat,dformat
,
I32 I16 I16V
status
,
exceptions
,
roundmode
)
Parameters
source
any supported real type by reference (required)
Passes the floating-point number to be converted. Constants are not
acceptable. You can specify a reference parameter of any supported real
type in the intrinsic call statement. The format is identified by
sformat
.
destination
any supported real type by reference (required)
Returns the converted floating-point number. If
status.info
is less than
zero, the number is not converted. Any supported real type can be
returned to the intrinsic call statement. The format is identified by
dformat
.
sformat
16-bit signed integer by value (required)
The floating-point format of the binary number supplied by
source
. This is
the format of the original number. Valid formats are:
Value Meaning
1 Hewlett-Packard 3000 32-bit
2 Hewlett-Packard 3000 64-bit
3 IEEE 32-bit
4 IEEE 64-bit
5 IEEE 128-bit
dformat
16-bit signed integer by value (required)
The destination floating-point format. This is the format of the converted
number. Valid formats are:
Value Meaning
1 Hewlett-Packard 3000 32-bit
2 Hewlett-Packard 3000 64-bit
3 IEEE 32-bit