logoalt Hacker News

beanjuiceII10/12/20241 replyview on HN

why? if 0 was getting divided with i would want to know otherwise i'll be using wrong calculations


Replies

Fire-Dragon-DoL10/12/2024

Because "0" often means "show none", so when dividing by 0, I'm fine "showing none".

I'm sure it doesn't work for everybody, but I never had a specific need to deal with zero in the division that didn't result with "actually let's count it as 0"

show 1 reply