new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
|
|
@ -0,0 +1,6 @@
|
|||
public static boolean except(double numer, double denom){
|
||||
try{
|
||||
int dummy = (int)numer / (int)denom;//ArithmeticException is only thrown from integer math
|
||||
return false;
|
||||
}catch(ArithmeticException e){return true;}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
public static boolean infinity(double numer, double denom){
|
||||
return Double.isInfinite(numer/denom);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue