- round() is a python function which is use for round off the given value.
- It take one argument which is of number type, either integer, float,double
- Return round off value
Example -
number is 3.12
rounded number will be 3
number is 3.78
rounded number will be 4
program-
print("Enter any number")
a=float(input())
print("Rounded number is "+str(round(a)))
print("Enter another number")
a=float(input())
print(" Rounded value is "+str(round(a)))
Enter any number
3.12
Rounded number is 3
Enter another number
3.78
Rounded value is 4
Enter any number
98.5
Rounded number is 98
Enter another number
98.6
Rounded value is 99