Settings

Theme

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

reddit.com

11 points by machrider 9 years ago · 3 comments

Reader

mikestew 9 years ago

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?

  • dom2 9 years ago

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

    • mikestew 9 years ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection