Posts: 3,616
Threads: 287
Joined: Jan 2003
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.
Posts: 4,307
Threads: 63
Joined: May 2003
I like Java script too
Posts: 1,845
Threads: 44
Joined: Aug 2002
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
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!
Posts: 3,616
Threads: 287
Joined: Jan 2003
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.
Posts: 4,307
Threads: 63
Joined: May 2003
It is infinity from the point of view of the program, you know =P.