#include <iostream>#include <cmath> using namespace std; int main() { double x = -2.1; cout << (x - floor(x)) << endl;}
Standard input is empty
0.9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!