Skip to content

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

Closed
@chrisrink10

Description

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

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions