(downcast-fraction op)
Anything that upcast-number
doesn't catch will hit this and pull a floating
point value out of the ratio.
Anything that `upcast-number` doesn't catch will hit this and pull a floating point value out of the ratio.
(parse-ratio x)
Parser for the #sicm/ratio literal.
Parser for the #sicm/ratio literal.
(rationalize x)
(rationalize n d)
Construct a ratio.
Construct a ratio.
(upcast-number op)
Integrals can stay exact, so they become ratios before op.
Integrals can stay exact, so they become ratios before op.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close