Name

ceil function — Computes ceiling

Synopsis

float ceil(float x)
double ceil(double x)
long double ceil(long double x)

The ceil function returns the smallest integer that is greater than or equal to x.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.