Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The biggest number comparison oddity IMO is actually negative zero (in my experience, you usually get one by multiplying a negative number by zero on accident).

    0 === -0 //=> true
    Object.is(0, -0) //=> false


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: