fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. double x = -2.1;
  8. cout << (x - floor(x)) << endl;
  9. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
0.9