Please, how do we round by excess in c ++? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Please, how do we round by excess in c ++?

For exemple: Input: 66,25 Output: 67

19th Aug 2020, 6:06 PM
Arnaud Aploon
Arnaud Aploon - avatar
3 Respostas
+ 1
ceil(x) works.. Check include cmath header
19th Aug 2020, 6:19 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
JayakrishnašŸ‡®šŸ‡³ thank u ceil(x) work
19th Aug 2020, 11:02 PM
Arnaud Aploon
Arnaud Aploon - avatar
0
20th Aug 2020, 5:50 AM
hayao