+ 1

what does the round function actually does?

3rd Jan 2017, 2:58 AM
ahmedbraish
ahmedbraish - avatar
2 Antworten
+ 3
It rounds a floating point number to the closest integer. Feel free to try it out on different inputs.
3rd Jan 2017, 3:44 AM
Igor B
Igor B - avatar
+ 1
To reduce the number of digits printed.
24th May 2022, 5:23 AM
Gobinda Pradhan
Gobinda Pradhan - avatar