5 ms·
Python 3 rounds 14.5 down to 14 (i.e. rounds .5 toward even numbers)
- mikestew 10y agoOkay, I'll bite: Python programmer doesn't know how IEEE rounding (IOW, every programming language of which I'm aware) works, announces ignorance to the world. And this is on HN why...? I ask that sincerely, not the usual snarky "passive-aggressively stating that I don't think this should be on HN" way. What object lesson did I miss?