+ 1

When we use "round(perc,2)" in the final line, what does the argument '2' do?

31st Jan 2017, 2:31 PM
partha sarathi
partha sarathi - avatar
2 odpowiedzi
+ 3
It determines to which digit from decimal point the number will be rounded up to. round(23.3467, 1) will be 23.3 round(23.3467, 2) will be 23.35 round(23.3467, 3) will be 23.347
31st Jan 2017, 3:03 PM
Doc
Doc - avatar
0
argument here serve as the number of digits UpTo which it would be round off example (28.4567 , 3) will be 28.456 and so on ...
4th Feb 2017, 12:14 PM
Shivam Bhatt