Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I like Javascript, all of a sudden!
#1
http://thegeekery.org/freeze.html
:rotfl:
Just view the source...Nice way to handle overflows, eh? Has anyone else every seen that?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#2
I like Java script too Wink
Reply
#3
Quote:Just view the source...Nice way to handle overflows, eh? Has anyone else every seen that?
There are constants to check if the answer wasn't an overflow Wink
You could use isNAN for example, or the constants DOUBLE.POSITIVEINFINITY or DOUBLE.NEGATIVEINFINITY. I can't remember the constants exactly though.

But you're right, overflows are handled without error, but it can slow down debugging processes!
Reply
#4
Meh, I just thought that a cool thing to do...even though 200! isn't infinity...
Ignore this. :roll:
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#5
It is infinity from the point of view of the program, you know =P.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)