Everything

fesetround


Sets the current rounding direction.

[Format]

#include <fenv.h>

#include <assert.h>

long fesetround(long rnd);

[Return values]

0 only when the rounding direction has been set successfully

[Remarks]

The rounding direction is not changed if the rounding direction requests through the fesetround function differs from the rounding macro value.

Do not use this function when compiler option nofpu is selected. If used, the function returns a nonzero value, which indicates an abnormality.