new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
|
|
@ -0,0 +1,7 @@
|
|||
(defn safe-/ [x y]
|
||||
(try (/ x y)
|
||||
(catch ArithmeticException _
|
||||
(println "Division by zero caught!")
|
||||
(cond (> x 0) Double/POSITIVE_INFINITY
|
||||
(zero? x) Double/NaN
|
||||
:else Double/NEGATIVE_INFINITY) )))
|
||||
Loading…
Add table
Add a link
Reference in a new issue