#include <cstdio> int main(){ printf("%.3f\n", 0.1); printf("%.3f\n", 150); printf("%.3f\n", 123.103); return 0;}
Standard input is empty
0.100 0.100 123.103
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!