(Object x, Object y)
| 180 | } |
| 181 | |
| 182 | static public Number divide(Object x, Object y){ |
| 183 | if (isNaN(x)){ |
| 184 | return (Number)x; |
| 185 | } else if(isNaN(y)){ |
| 186 | return (Number)y; |
| 187 | } |
| 188 | Ops yops = ops(y); |
| 189 | if(yops.isZero((Number)y)) |
| 190 | throw new ArithmeticException("Divide by zero"); |
| 191 | return ops(x).combine(yops).divide((Number)x, (Number)y); |
| 192 | } |
| 193 | |
| 194 | static public Number quotient(Object x, Object y){ |
| 195 | Ops yops = ops(y); |
no test coverage detected