new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
function divByZero(dividend,divisor)
|
||||
{
|
||||
var quotient=dividend/divisor;
|
||||
if(isNaN(quotient)) return 0; //Can be changed to whatever is desired by the programmer to be 0, false, or Infinity
|
||||
return quotient; //Will return Infinity or -Infinity in cases of, for example, 5/0 or -7/0 respectively
|
||||
}
|
||||
alert(divByZero(0,0));
|
||||
Loading…
Add table
Add a link
Reference in a new issue