setprecision in c++ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

setprecision in c++

I want to show digits printed to the right of the decimal point for average but it doesn't. What is wrong with this code ?? Help me please https://code.sololearn.com/c6qAZstHKRbk/?ref=app

7th Nov 2019, 7:29 PM
Armina
Armina - avatar
2 ответов
+ 3
Thanks a lot ~ swim ~
7th Nov 2019, 8:19 PM
Armina
Armina - avatar
0
Explicitly convert the result of the division to float
14th Jun 2023, 11:33 AM
Krishika R
Krishika R - avatar