How to customized 'cout' in C++..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to customized 'cout' in C++..?

I write the code below but it print 4bits after the decimal point of float point number. I know that 5 digits is cout default. But it can be customized. Can anyone please help me to output my whole float from the below program..😣 https://code.sololearn.com/cceMxK2o1I2j/?ref=app

9th Dec 2017, 10:44 AM
Bits!
3 Answers
9th Dec 2017, 10:47 AM
Shamima Yasmin
Shamima Yasmin - avatar
9th Dec 2017, 11:18 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 1
Thanks😆😆 See my code I cant use setprecision() on the void function having no return value. Can you solve it.?
9th Dec 2017, 10:51 AM
Bits!