就是向下取整
在这里插入代码片
#include<stdio.h>
#include<math.h>
int main(void)
{
double a = 34.4;
printf("%.2f",floor(a));
return 0;
}
上图
就是向下取整
在这里插入代码片
#include<stdio.h>
#include<math.h>
int main(void)
{
double a = 34.4;
printf("%.2f",floor(a));
return 0;
}
上图