Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual—522629-013
5-266
FP_IEEE_ROUND_GET_ Procedure
FP_IEEE_ROUND_GET_ Procedure
Summary
The FP_IEEE_ROUND_GET_ procedure reads the current rounding mode.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
RoundMode input
INT(32)
The 32-bit rounding mode code.
Rounding mode values returned by this procedure are:
Note. This procedure is supported in the G06.06 RVU and all subsequent G-series RVUs. IEEE
floating-point is available on all S-series processors except S70000 servers with NSR-G processors.
#include <kfpieee.h>
p_ieee_round FP_IEEE_ROUND_GET_(void);
?source $system.system.kfpieee
RoundMode := FP_IEEE_ROUND_GET_ ;
FP_IEEE_ROUND_NEAREST 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_UPWARD Round up (toward plus infinity).
FP_IEEE_ROUND_DOWNWARD Round down (toward minus infinity).
FP_IEEE_ROUND_TOWARDZERO Round toward zero (truncate).