Javascript treats any number higher than 1.7976931348623157E+10308 as Infinity. Pop that number into the Firebug console and see what I mean

Forward

2 months, 1 week ago by Aaron B.

2 Replies

  • Jean-Pierre P. replied May 20th
    ahah fun I've just tried it :p
  • Aaron B. replied May 20th
    weird thing is if you do console.log(isNaN('Infinity')) it returns false - so it treats that particular string as a number!?

Join Now to Reply!

To add your own reply, sign in or join Pownce today!

393 Recipients

View all

This note is also available to the general public.