News for hackers. Stuff that matters.
Re:What's the difference between 0/0 and 1/0? by tim333 on Friday May 24, 2019 @07:01PM (#20006043)
Well, in javascript 0/0 == NaN while 1/0 == Infinity.

An interesting thing is they have the value -0 so you can set a=-0 and 1/a returns -Infinity.

Re:What's the difference between 0/0 and 1/0? by strainer on Friday May 24, 2019 @07:22PM (#20006133)
This is not only javascripts behavior, it is the IEEE standard for floating-point arithmetic which most modern hardware and software strictly adheres to.
Re:What's the difference between 0/0 and 1/0? by stOneskull on Friday May 24, 2019 @11:47PM (#20006985)
-0 is my favorite number
Re:What's the difference between 0/0 and 1/0? by dylan604 on Friday May 24, 2019 @07:35PM (#20006176)
This should be part of an update to the Destroy All Software's Wat video: https://www.destroyallsoftware.com/talks/wat
Re:What's the difference between 0/0 and 1/0? by garmaine on Friday May 24, 2019 @09:23PM (#20006574)
Except that is defined, standard IEEE 754 behavior and is true on nearly all programming languages.