Skip to content

Python 3 rounds 14.5 down to 14 (i.e. rounds .5 toward even numbers)

reddit.com
11 pointsmachrider3 comments
On HN

Comments

Okay, 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?

The way the title was phrased made it seem like there was a weird bug that only affected the number 14. Extremely bad title.

Good an explanation as any, and kind of how I initially read it. Thanks.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.