fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double liczba = 123.456;
  8.  
  9. printf("po przecinku = %.1lf",fmod(liczba,1));
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
po przecinku = 0.5