#include <iomanip> serve a poter usare << fixed << setprecision(2)
<<fixed<< setprecision(2) serve per la formattazione del numero