I have a float number combination (min_number, max_number),and I am expecting the following round up:
(-19.12, 34.45) "rounded to" (-19.2, 34.5)
(-0.34, -0.22) "rounded to" (-0.4, -0.3)
(-0.58, -0.87) "rounded to" (-0.6, -0.9)
(-0.24, 5.98) "rounded to" (-0.3, 6.0)
(2.57, 22.38) "rounded to" (2.6, 22.4)
Note that only 1 decimal place is required. And then:
size = int(input('please input: '))
number = (min_number + max_number) / size
Then "number" will need to be rounded as well, also require 1 decimal place:
10.233333 "rounded to" 10.3
5.744542267888 "rounded to" 5.8
Any thoughts? Many thanks,