t332.py 122 B

1234567891011
  1. f = 2.515
  2. g = round(f)
  3. print g
  4. g = round(f,1)
  5. print g
  6. g = round(f,2)
  7. print g
  8. g = round(f,3)
  9. print g
  10. g = round(f,4)
  11. print g