// Code derived from Stroustrup's PPP2 book// § 11.2.4 Precision// -and beginning on p 386#include<iomanip>#include<iostream>usingnamespacestd;intmain(){cout<<1234.56789<<'\t'<<fixed<<1234.56789<<'\t'<<scientific<<1234.56789<<'\n';cout<<defaultfloat<<setprecision(5)<<1234.56789<<'\t'<<fixed<<1234.56789<<'\t'<<scientific<<1234.56789<<'\n';cout<<defaultfloat<<setprecision(8)<<1234.56789<<'\t'<<fixed<<1234.56789<<'\t'<<scientific<<1234.56789<<'\n';}