fork download
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. float val = 19.3;
  6. int div = 2;
  7. printf("%f", fmod(val, div));
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
1.299999