☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square12linkfedilinkarrow-up180arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up180arrow-down1imageWhich of these javascript expressions is false?lemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square12linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squaredavel@lemmy.mllinkfedilinkEnglisharrow-up30·2 months agoDefinitionally in IEEE floating point, NaN is not equal to anything, including itself. The only real abomination here is B: > Math.min() Infinity > Math.max() -Infinity >
minus-squareNewDark [he/him]@hexbear.netlinkfedilinkEnglisharrow-up5·2 months agoI love javascript. It’s so insane in such fun ways to prevent itself from throwing errors. It’s got like a naive cute charm to it ya know?
minus-squaremathemachristian [he/him]@hexbear.netlinkfedilinkarrow-up4·2 months agothats how we often do it in math. The minimum over the empty set is ∞
Definitionally in IEEE floating point, NaN is not equal to anything, including itself. The only real abomination here is B:
> Math.min() Infinity > Math.max() -Infinity >
Removed by mod
I love javascript. It’s so insane in such fun ways to prevent itself from throwing errors. It’s got like a naive cute charm to it ya know?
thats how we often do it in math. The minimum over the empty set is ∞