在C语言中,可以使用以下函数进行四舍五入:
double round(double x); float roundf(float x); long double roundl(long double x);
double ceil(double x); float ceilf(float x); long double ceill(long double x);
double floor(double x); float floorf(float x); long double floorl(long double x);
需要注意的是,这些函数的返回值类型可能是不同的,可以根据需要选择适合的函数。