diff --git a/src/rustint/core.clj b/src/rustint/core.clj index aba69fa..0879f98 100644 --- a/src/rustint/core.clj +++ b/src/rustint/core.clj @@ -2132,7 +2132,11 @@ ; 0.5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn dividir [arg1 arg2] - (quot arg1 arg2) + ( + cond + (and (float? arg2) (int? arg1)) (/ arg1 arg2) + :else (quot arg1 arg2) + ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;