Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual—522629-013
5-267
FP_IEEE_ROUND_SET_ Procedure
FP_IEEE_ROUND_SET_ Procedure
Summary
The FP_IEEE_ROUND_SET_ procedure sets the current rounding mode. 
Syntax for C Programmers 
Syntax for TAL Programmers  
Parameters
NewMode input
INT(32)
The 32-bit rounding mode code.
The rounding mode can have one of the following values:
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>
void FP_IEEE_ROUND_SET_( fp_ieee_round new_mode );
?source $system.system.kfpieee
FP_IEEE_ROUND_SET_ ( NewMode ); ! i
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).










