Round down value: how to use floor

#include <stdio.h>
#include <math.h>
int main ()
{
printf ("floor of 3.3 is %.1lf\n", floor ( 3.3 ) );
printf ("floor of 4.8 is %.1lf\n", floor ( 4.8 ) );
printf ("floor of -3.3 is %.1lf\n", floor ( -3.3 ) );
printf ("floor of -4.8 is %.1lf\n", floor ( -4.8 ) );
return 0;
}
Related examples in the same category