Query: ceil
OS: osx
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CEIL(3) BSD Library Functions Manual CEIL(3)NAMEceil -- round to smallest integral value not less than xSYNOPSIS#include <math.h> double ceil(double x); long double ceill(long double x); float ceilf(float x);DESCRIPTIONThe ceil() functions return the smallest integral value greater than or equal to x.SPECIAL VALUESceil(+-0) returns +-0. ceil(+-infinity) returns +-infinity.VECTOR OPERATIONSIf you need to apply the ceil() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may give significantly better performance: #include <Accelerate/Accelerate.h> vFloat vceilf(vFloat x); void vvceilf(float *y, const float *x, const int *n); void vvceil(double *y, const double *x, const int *n);SEE ALSOfloor(3), round(3), trunc(3), math(3)STANDARDSThe ceil() functions conform to ISO/IEC 9899:2011.BSDDecember 11, 2006 BSD
Related Man Pages |
---|
llround(3) - mojave |
cos(3) - osx |
cosf(3) - osx |
cosl(3) - osx |
sinl(3) - osx |
Similar Topics in the Unix Linux Community |
---|
math.h: float ceilf(float x) |
How to get the ceiling value for floating numbers? |
CEILING and FLOOR functions |
Ceil not working as function in awk statement |
Rounding off a decimal |