set precision deci in c++ code example Example: ‘setprecision’ was not declared in this scope //You have to include header file #include <iomanip>