FESETROUND 3CW "09 March 2006" "mathcw-1.00"
Table of contents
fesetround - set rounding direction mode
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <fenvcw.h>
extern int fesetround (int mode);
Set the rounding direction according to the argument
mode,
which must be one of the symbolic names
FE_DOWNWARD,
FE_TONEAREST,
FE_TOWARDZERO,
or
FE_UPWARD.
Rounding control is a required feature of IEEE 754 arithmetic,
although some architectures, notably, the DEC/Compaq/HP Alpha, may
require compile-time options to enable access to it.
The C# and Java programming languages offer only a subset of IEEE 754
arithmetic, and they exclude rounding-mode access. Thus, this
function is unlikely to be of use via the interfaces to the
mathcw
library defined for those languages.
Return zero on success, and a negative value on failure.
None.
feclearexcept(3CW),
fegetenv(3CW),
fegetexceptflag(3CW),
fegetprec(3CW),
fegetround(3CW),
feholdexcept(3CW),
feraiseexcept(3CW),
fesetenv(3CW),
fesetexceptflag(3CW),
fesetprec(3CW),
fetestexcept(3CW),
feupdateenv(3CW).