0

in python I noticed that sometimes it returns round result which I do not want. If I divide 94192*100/86400 I would like to get as result 109.01 (on two decimal places for full result 109,0185185185185) while I am always getting 109.02. Is this possible to have ? Thaks

numberOfSeconds=94192
percentagePerDay=round(float(numberOfSeconds*100)/86400,2)
#desired result 
print (percentagePerDay)
Veljko
  • 1,708
  • 12
  • 40
  • 80

0 Answers0