Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #precision
ADD COMMENT
Topic
Name
1+2 =