Answers for "how to give precision in c++"

C++
1

set precision in c++

#include <iostream>

int main()
{
  std::cout << std::setprecision(n); //to n SIG FIG
  // any cout comand will be to n sig fig after this comand
}
Posted by: Guest on January-17-2022

Code answers related to "how to give precision in c++"

Browse Popular Code Answers by Language