logoalt Hacker News

hun3yesterday at 4:02 PM1 replyview on HN

My next malloc(3) is returning NAN.


Replies

fredfishyesterday at 6:34 PM

I've always considered NaN too definitive for general industry languages like C, JS or Cobol where not even physics with calculus should be assumed. Maybe its ok for languages that at least expect math for engineers like Fortran or up..

How about we call it "Maybe a Number" and since equality can't work for it we still need a separate way to ask like: Math.whoIsTheMaN(me)