Set the floating-point precision
#include <fenv.h> int fesetprec( int prec );
The fesetprec() function sets the floating-point precision. To get the current precision, call fegetprec().
0 on success, or -1 if the prec was invalid.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |