Apr-12-2020, 07:52 AM
(Apr-11-2020, 04:25 PM)bowlofred Wrote: It seems like the round() that was mentioned earlier would fit, but perhaps there's a case that doesn't for some reason.
Yes, there are cases that don't fit. Look at this. Is this what you learned at school about rounding?
>>> round(0.5) 0 >>> round(1.5) 2 >>> round(2.5) 2 >>> round(3.5) 4 >>> round(4.5) 4