I am trying to write a code that rounds down the start
list values to the nearest .25 value. How would I be able to do that? So the first index in the start
list is 3.645
and that would be rounded to 3.5
since .0, . 25, 0.5, 0.75
are the only increments for 0.25
. Since the last index already is a multiple of 0.25 2
stays as 2
.
start = [3.645, 33.54656, 1.77, 1.99, 2]
Expected output:
[3.5, 33.5, 1.75, 1.75, 2]