#include <iostream>using namespace std; int main() { double n1 = 123.45; n1 = n1 - (int)n1%100; cout << n1; return 0;}
Standard input is empty
100.45
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!