Hacker News new | ask | show | jobs
by kazinator 932 days ago
The "convention" is inconsistent with division by small quantities that get closer and closer to zero.

  1/1000000 = 0.000001
  ...
  1/10 = 0.1
  1/1 = 1
  1/0.1 = 10
  1/0.0001 = 1000
  1/0.0000001 = 1000000
  ...
  1/0 = ... 0?  WTF
What is the application for 1/0 = 0? Where is this used? Does it actually make a meaningful appearance outside of drunken barroom conversations, and classrooms staffed by clowns?
2 comments

    ceil(0.000001) = 1
    ceil(0) =... 0? Wtf?
But that's a perfectly well defined function. Not every function has to be continuous.
In the first place, not every function has to be defined everywhere.
Well, if 1/x -> infinity as x -> 0, x > 0, and 1/x -> -infinity as x -> 0, x < 0, then the average of +infinity and -infinity is zero. :-)