功 能: 返回大于或者等于指定表达式的最小整数
头文件:math.h
#include <stdio.h>
#include <math.h>
int main(void)
{
double down, up;
down = floor(number);
up = ceil(number);
printf("original number %5.2lf\n", number);
printf("number rounded up %5.2lf\n", up);
original number 123.54
number rounded up 124.00
来源:https://www.cnblogs.com/eagleking0318/archive/2010/12/24/6521313.html