+ 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!
4 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!