Next: , Previous: , Up: Fenv   [Contents][Index]


3.9 fesetround—set current rounding direction

Synopsis

#include <fenv.h>
int fesetround(int round);

Link with -lm.

Description
This method attempts to set the current rounding direction represented by round. round must be the value of one of the rounding-direction macros.


Returns
If the rounding mode was successfully established, this method returns zero. Otherwise, a non-zero value is returned.


Portability
ANSI C requires fesetround.

Not all Newlib targets have a working implementation. Refer to the file sys/fenv.h to see the status for your target.