clojure-rs / ClojureRS

Clojure, implemented atop Rust (unofficial)
Apache License 2.0
952 stars 27 forks source link

f64 type, addition works with doubles and ints together #36

Closed erkkikeranen closed 4 years ago

erkkikeranen commented 4 years ago

Solves #29

Addition with promotion to double works:

user=> (+ 1 1)
2
user=> (+ 1 1.2)
2.2
user=> (+ 1.1 1)
2.1