fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. float f = 4.9182;
  6. printf("%f", f - fmodf(f, 0.1));
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
4.900000