>>> round(1.5) 2 >>> round(0.5) 0 >>> round(90.5) 90
wtf python
@xarvos the joys of floating point arithmetic
@niplav c and even js don’t behave like this tho
@niplav hmm roundf() doesn’t behave like this but printf format does, it seems
@xarvos ah ok I'd have been very confused if python was unique in that respect
a Schelling point for those who seek one
@niplav c and even js don’t behave like this tho