Question

In javascript division by zero will result to a value called infinity( or -infinity). Also, any arithmetic operation on infinity with a real number will result to infinity. I would like to know how is infinity value, and the functions that operate over it have been implemented.

Was it helpful?

Solution

Infinity is 1.7976931348623157E+308 in Javascript, which is a number that exceeds the upper limit of the floating point numbers. There is also -Infinity, which is a number that exceeds the lower limirt of the floating point numbers (-1.7976931348623157E+10308).

Scientific notation, didn't want to exceed the char limit ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top