(Object a, Object b)
| 429 | } |
| 430 | |
| 431 | public static Object multiply(Object a, Object b) { |
| 432 | a = normalizeIntIfNeeded(a); |
| 433 | b = normalizeIntIfNeeded(b); |
| 434 | if (a == null || b == null) return null; |
| 435 | |
| 436 | if (a instanceof Long && b instanceof Long) { |
| 437 | return ((Long) a) * ((Long) b); |
| 438 | } |
| 439 | double res = toDouble(a) * toDouble(b); |
| 440 | if (IsInteger(res)) { |
| 441 | return (long) res; |
| 442 | } else { |
| 443 | return res; |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | public static int getArrayLength(Object value) { |
| 448 | if (value == null) return 0; |