Everything

fegetround


Gets the current rounding direction.

[Format]

#include <fenv.h>

long fegetround(void);

[Return values]

Normal: 0

Abnormal: Negative value when there is no rounding direction macro value or the rounding direction cannot be determined

[Remarks]

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