News for hackers. Stuff that matters.

Ask HN: Why does OS X Spotlight's calculator assert N/0 = N?

Perhaps a trivial question, but I think it's interesting how digital devices handle mathematical inconsistencies/absurdities.

I can't say I've seen this sort of "screw it" approach before. Anyone out there know why this is the case with Mac?

If anyone is curious, the "Calculator" app returns quite considerately, "Not a number", so they don't seem to be run by the same engine. I also tried in spotlight with 0.0 to see if it was a float/int distinction, but no dice.

Note I'm running 10.10.5 (Yosemite)

( 3 comments | 5 points | on HN )
Re:Ask HN: Why does OS X Spotlight's calculator assert N/0 = N? by kogir on Thursday March 23, 2017 @04:27AM (#13938137)
Re:Ask HN: Why does OS X Spotlight's calculator assert N/0 = N? by 0942v8653 on Thursday March 23, 2017 @11:59AM (#13940946)
Apple's Spotlight calculators have had worse problems: http://i.imgur.com/UMYtIDi.jpg
Re:Ask HN: Why does OS X Spotlight's calculator assert N/0 = N? by andreygrehov on Saturday March 25, 2017 @05:16PM (#13957619)
I think it doesn't do anything TBH. The N was simply the last successful output as you were typing.