News for hackers. Stuff that matters.
Re:1/0 = 0 (2018) by ilius2 on Sunday December 01, 2024 @04:53PM (#42291008)
If you were to define a/0 the most logical choice would be a new special value "Infinity". The second best choice would be the maximum supported value of the type of a (int, int64 etc). Anything else would be stupid.
Re:1/0 = 0 (2018) by sidpatil on Sunday December 01, 2024 @09:35PM (#42292572)
What if a is negative?
Re:1/0 = 0 (2018) by ilius2 on Sunday December 01, 2024 @11:08PM (#42293018)
Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.
Re:1/0 = 0 (2018) by jsnedjdn on Monday December 02, 2024 @01:51AM (#42293767)
IEEE floating point representation does both
Re:1/0 = 0 (2018) by HappMacDonald on Monday December 02, 2024 @04:21AM (#42294507)
John Conway can