Guardian Procedure Calls Reference Manual

FP_IEEE_ROUND_SET_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Summary
The FP_IEEE_ROUND_SET_ procedure sets 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>
void FP_IEEE_ROUND_SET_ ( fp_ieee_round newmode );
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.KFPIEEE
FP_IEEE_ROUND_SET_ ( newmode ); ! i
Parameter
newmode
input
INT(32)
The rounding mode code. The rounding mode can have one of these values:
Round toward the representable value nearest the true result. In
cases where there are two equally near values, the "even" value
FP_IEEE_ROUND_NEAREST
(the value with the least-significant bit zero) is chosen (the standard
rounding mode).
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
FP_IEEE_ROUND_SET_ Procedure 651