+ 1
What exactly is the Round Function? This doesn't seem to say.
4 Antworten
0
The round function rounds a float value to the nearest decimal point. ex:
value = 4.12345
print round(value)
This gives the output: 4.0
Hope I explained it well enough for a fellow whovian.
0
print(round(1.47298523, 2))
OUTPUT:
1.47
print(round(1.47298523, 4))
OUTPUT:
1.4729
print(round(1.47298523))
OUTPUT:
1
I hope I made it clear
0
5
0
5