463
submitted 2 months ago by 0x4E4F to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] DannyBoy 6 points 2 months ago

It's an error, since no amounts of zeros, even infinite, would make it equal 10.

[-] [email protected] 3 points 2 months ago

https://en.wikipedia.org/wiki/Division_by_zero#Floating-point_arithmetic

In IEEE arithmetic, division of 0/0 or โˆž/โˆž results in NaN, but otherwise division always produces a well-defined result. Dividing any non-zero number by positive zero (+0) results in an infinity of the same sign as the dividend. Dividing any non-zero number by negative zero (โˆ’0) results in an infinity of the opposite sign as the dividend. This definition preserves the sign of the result in case of arithmetic underflow.

this post was submitted on 16 May 2024
463 points (97.7% liked)

linuxmemes

19849 readers
810 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS