use long long double. SetPrecision(12)-sets the resolution of the variable fixed- cancels scientific notation.
Using cout<<SetPrecision(12)<<fixed;
use long long double. SetPrecision(12)-sets the resolution of the variable fixed- cancels scientific notation.