about to print float value with precision
Title
Question
How to print float value in c++ with precision.
C-and-Cpp First-Cpp-Program 06-07 min 10-20 sec
Answers:
we can print float numbers with fixed size in c++ by using following io manipulators:
std::fixed and std::setprecision(int), for using this, we need to include <iomanip> header file in c++ source code
Login to add comment