fork download
  1. #include <cmath>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. int i=512;
  7. std::cout << i << ","
  8. << fmod(i/102.4,1.f)
  9. << ","
  10. << fmod(i/102.4,1.f) << std::endl;
  11.  
  12. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
512,0,0