Como se redondea al mayor nĂșmero en c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Como se redondea al mayor nĂșmero en c++?

12th Apr 2022, 12:58 PM
LuXuz
LuXuz - avatar
2 Answers
0
LuXuz its round a variable to the nearst integer like: double x= 11.3; int a = round(x) ; a will be 11 if x= 11.5 a will be 12 etc..
12th Apr 2022, 1:14 PM
Amine Laaboudi
Amine Laaboudi - avatar
0
Gracias
12th Apr 2022, 1:19 PM
LuXuz
LuXuz - avatar