Borland C++ reference

ceil, ceill

raw OCR

Rounds up.

Defined in header <math.h>

Syntax

#include <math.h>
double ceiKdouble x);
long double ceilKlong double x);

Portability

DOSUNIXWindowsANSI CC++ only
ceil ■■■■
ceill ■■

Remarks

ceil finds the smallest integer not less than x. ceill is the long double version; it takes a long double argument and returns a long double result.

Return value

These functions return the integer found as a double (cell) or a long double (ceill).

See also

  • floor
  • fmod
  • iinclude
  • <math.h>
  • iinclude
  • <stdio.h>
  • int
  • main
  • {
  • double
  • down
  • up
  • number
  • =
  • 123.54;
  • down
  • =
  • floor;
  • up
  • =
  • ceil;
  • printf;
  • printf;
  • printf;
  • return
  • 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.