Guardian Procedure Calls Reference Manual

Parameters
For NSK_FLOAT_IEEE32_TO_TNS32_:
IEEE_Data
input
INT .EXT:ref (NSK_float_ieee32)
is the 32-bit IEEE floating-point number.
TNS_Data
output
INT .EXT:ref (NSK_float_tns32)
is the 32-bit TNS floating-point number.
For NSK_FLOAT_IEEE32_TO_TNS64_:
IEEE_Data
input
INT .EXT:ref (NSK_float_ieee32)
is the 32-bit IEEE floating-point number.
TNS_Data
output
INT .EXT:ref (NSK_float_tns64)
is the 64-bit TNS floating-point number.
For NSK_FLOAT_IEEE64_TO_TNS64_:
IEEE_Data
input
INT .EXT:ref (NSK_float_ieee64)
is tThe 64-bit IEEE floating-point number.
TNS_Data
output
INT .EXT:ref (NSK_float_tns64)
is the 64-bit TNS floating-point number.
Returned Value
INT(32)
32-bit error mask.
No bits set means the result was exactly equal in value to the input. This value can be identified
with NSK_FLOAT_OK, which is equal to zero.
The error bits that can be set by at least one of the three IEEE_TO_TNS conversion procedures are:
The input was out of range (either too big in magnitude, infinity, or not a number
(NaN)). The result had the largest possible magnitude.
NSK_FLOAT_TNS_OVERFLOW
The input was out of range (too small in magnitude) and could not be represented
correctly.
NSK_FLOAT_TNS_UNDERFLOW
The result did not exactly match the input.NSK_FLOAT_TNS_INEXACT
Overflow happened because the input was an IEEE infinity.NSK_FLOAT_WAS_INFINITY
Overflow happened because the input was an IEEE NaN.NSK_FLOAT_WAS_NAN
NSK_FLOAT_IEEE TO TNS Procedures 875