#include <iostream>#include <iomanip> using namespace std; int main(){ float a = 9.567; cout << setprecision(2) << a;}
Standard input is empty
9.6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!