0

We all know, if we divide (1.0/0.0) we will get +Infinity and if we divide (-1.0/0.0) we will get -Infinity! I want to know How computers calculate this value, internally ??

PS: I wondering why I didn't find any question regarding this in any of StackExchange community!

Papai from BEKOAIL
  • 1,329
  • 1
  • 7
  • 16

1 Answers1

2

Short answer: It will detect that you divide by 0 and not do the actual division.

Long answer here: https://softwareengineering.stackexchange.com/questions/311155/will-a-computer-attempt-to-divide-by-zero

Lucas
  • 41
  • 6