Good price.
Transporter Room 3 ( @Transporter_Room_3@startrek.website ) 38•1 month agoYou ever have one of those moments when you just put 2 and 2 together, and also that you should have had that realization many years ago?
I just realized what NaN stands for…
This must be what people who get told “you can just wait for the shower water to warm up before hopping in” feel like.
Mesa ( @Mesa@programming.dev ) 3•1 month agoThe elephant and rope parable rings its bell of sound morals!
Not so much the realizing what NaN means; that’s more relevant to that XKCD which I probably don’t need to describe here.
Oka ( @Oka@lemmy.ml ) English22•1 month ago“That makes it free, right?”
xigoi ( @xigoi@lemmy.sdf.org ) 8•1 month agoNot only that, it makes your entire purchase free due to NaN arithmetic.
BlueKey ( @BlueKey@kbin.run ) 3•1 month agoBut as you mention, NaN propagates.
So at checkout, your wallet will become NaN, as the shops money balance. Then it will spread to your bank account and before you realize what happens the whole banking-district is in flames. FiskFisk33 ( @FiskFisk33@startrek.website ) 1•1 month agono, it costs NaN, now remove NaN from your account…
…oh no
nickwitha_k (he/him) ( @nickwitha_k@lemmy.sdf.org ) 17•1 month ago0*(NaN)… So does that mean the price IS a number?
RecluseRamble ( @RecluseRamble@lemmy.dbzer0.com ) 8•1 month agoI suppressed most of my former js knowledge but I guess it’s a string now.
tiredofsametab ( @tiredofsametab@kbin.run ) 5•1 month agoIn JS, it’s just NaN if my browser’s console is to be believed. I suspected it would probably be
{object}
for no clear reason nickwitha_k (he/him) ( @nickwitha_k@lemmy.sdf.org ) 6•1 month agofor no clear reason
JS That’s the reason. The language has an awful type system.
TheOakTree ( @TheOakTree@beehaw.org ) 4•1 month agoIf 0/0 is NaN, then does that mean 0*NaN = 0*0/0 = 0?
FiskFisk33 ( @FiskFisk33@startrek.website ) 2•1 month ago0*NaN = NaN
lnxtx ( @lnxtx@feddit.nl ) English12•1 month ago blackbrook ( @blackbrook@mander.xyz ) 2•1 month ago…spilled his arithmetic overflow on the ground.
Justin ( @jlh@lemmy.jlh.name ) English4•1 month agoOnani!
Laylong ( @Laylong@programming.dev ) 3•1 month agocost = “arm” + “leg”;
Manzas ( @Manzas@lemdro.id ) English3•23 days ago Swedneck ( @Swedneck@discuss.tchncs.de ) 3•1 month agolidl quality
xia ( @xia@lemmy.sdf.org ) English1•1 month agoOoo na na…