Guardian Procedure Calls Reference Manual
FP_IEEE_ROUND_GET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Summary
The FP_IEEE_ROUND_GET_ procedure reads the current rounding mode.
NOTE: This procedure is supported in all J-series and H-series RVUs and in G-series RVUs
beginning with G06.06. IEEE floating-point is available on all NB-Series and NS-Series systems,
and on all S-Series systems, except S70000 servers with NSR-G processors.
Syntax for C Programmers
#include <kfpieee.h>
fp_ieee_round FP_IEEE_ROUND_GET_ ( void );
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.KFPIEEE
roundmode := FP_IEEE_ROUND_GET_;
Returned Value
INT(32)
The rounding mode selection, one of:
Round toward the representable value nearest the true result. In cases where
there are two equally near values, the "even" value (the value with the
least-significant bit zero) is chosen (the standard rounding mode).
FP_IEEE_ROUND_NEAREST
Round up (toward plus infinity).FP_IEEE_ROUND_UPWARD
Round down (toward minus infinity).FP_IEEE_ROUND_DOWNWARD
Round toward zero (truncate).FP_IEEE_ROUND_TOWARDZERO
650 Guardian Procedure Calls (F)