+ 1
Getting a nearest whole no. in python
if input is a no. how can I get an output of its nearest whole no.
1 Answer
+ 2
With the function round. You just have to convert the input to a float, then round it.
if input is a no. how can I get an output of its nearest whole no.