C/math.h/ceil — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 14:20, 25 мая 2010
ceil: returns the smallest integer not less than num
//Declaration: float ceilf(float num);
double ceil(double num);
long double ceill(long double num);
//Return: Given 1.02, ceil() would return 2.0.
Given -1.02, ceil() would return -1.
#include <math.h>
#include <stdio.h>
int main(void)
{
printf("%f", ceil(9.9));
}
/*
10.000000*/