cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float rintf (float x); extern double rint (double x); extern long double rintl (long double x); extern __float80 rintw (__float80 x); extern __float128 rintq (__float128 x); extern long_long_double rintll (long_long_double x); extern decimal_float rintdf (decimal_float x); extern decimal_double rintd (decimal_double x); extern decimal_long_double rintdl (decimal_long_double x); extern decimal_long_long_double rintdll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
Caution: Depending on the argument size and precision, the result may be too large to store in a variable of some integer type, even though it is exactly representable as a floating-point value.