| 61 | } |
| 62 | |
| 63 | fun asLong(any: Any?): Long { |
| 64 | if (any is Number) { |
| 65 | return any.toLong() |
| 66 | } else if (any is String) { |
| 67 | return any.toLong() |
| 68 | } |
| 69 | |
| 70 | throw AttributeError("value $any is not a long") |
| 71 | } |
| 72 | |
| 73 | fun asDouble(any: Any?): Double { |
| 74 | if (any is Number) { |
no test coverage detected