basilisp-lang / basilisp

A Clojure-compatible(-ish) Lisp dialect targeting Python 3.9+
https://basilisp.readthedocs.io
Eclipse Public License 1.0
290 stars 8 forks source link

Integer division always returns a `fractions.Fraction` even if the result is a whole integer #1140

Closed chrisrink10 closed 7 hours ago

chrisrink10 commented 7 hours ago

Basilisp's / function is returning fractions for integer division even when the result is itself an integer.

(/ 3000 1000) ;;=> 3/1

In Clojure:

(/ 3000 1000) ;;=> 3