Display a number that exceeds the limit of a floating point number:
The result will be:
Try it yourself »
Definition and Usage
Infinity is a numeric value that represents positive infinity.
-Infinity is a numeric value that represents negative infinity.
Infinity is displayed when a number exceeds the upper limit of the floating point numbers, which is 1.797693134862315E+308.
-Infinity is displayed when a number exceeds the lower limit of the floating point numbers, which is -1.797693134862316E+308.
Thank You For Helping Us!
Your message has been sent to W3Schools.