+ 1

What exactly is the Round Function? This doesn't seem to say.

6th Nov 2015, 4:50 AM
Zac Hinote
Zac Hinote - avatar
4 Respostas
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.
7th Nov 2015, 9:56 AM
Oscar Lawshea
Oscar Lawshea - avatar
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
21st Dec 2015, 6:27 PM
Иван Рожков
Иван Рожков - avatar
0
5
6th Jul 2016, 6:21 PM
naveen panjala
naveen panjala - avatar
0
5
6th Jul 2016, 6:21 PM
naveen panjala
naveen panjala - avatar