Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

JavaScript divide by zero

Name: Anonymous 2007-02-09 2:12

-Infinity/0 produces -Infinity
-1/0 produces -Infinity
0/0 produces NaN
1/0 produces Infinity
Infinity/0 produces Infinity

What are your thoughts on this?

Name: Anonymous 2007-02-09 10:55

>>1
my thought : javascript failed
because :
-Infinity/0 = Infinity not -Infinity
-1/0 = Infinity not -Infinity
0/0 = 0 not NaN
and :
it's javascript

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List