fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. int main(int argc, const char* argv[]){
  5.  
  6. float num = 3.76;
  7.  
  8. printf("%.4f\n",floor(num));
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
3.0000