当我这样做时(/ 411 125)
,我不会得到十进制数。我怎么做?
Answers:
user=> (clojure-version)
"1.4.0"
user=> (doc quot)
-------------------------
clojure.core/quot
([num div])
quot[ient] of dividing numerator by denominator.
nil
user=> (quot 411 125)
3
即使这将工作:
(/ 22. 7) => 3.142857142857143