minus-squareInformationEntropy@programming.devtoProgrammer Humor@programming.dev•What was the silliest issue you discovered during debugging?linkfedilinkarrow-up3·3 hours agoProbably the silliest thing was discovering the hard way that x.5 doesn’t always round up in Python’s round(). Python uses “round to even” so that 1.5 rounds to 2 and 2.5 also rounds to 2. linkfedilink
Probably the silliest thing was discovering the hard way that x.5 doesn’t always round up in Python’s round(). Python uses “round to even” so that 1.5 rounds to 2 and 2.5 also rounds to 2.