Everything

ceill [V1.08 or later]


Calculates the minimum integer value greater than x and x

[Classification]

Mathematical library

[Syntax]

#include <math.h>

long double __far ceill(long double x); (C99)

[Return value]

Returns the minimum integer greater than x and x.

If x is ±∞, ceill returns ±∞ and sets macro ERANGE to global variable errno.

If x is a Not-a-Number(NaN), ceill returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

[Description]

This function calculates the minimum integer value greater than x and x.