Liking cljdoc? Tell your friends :D

sicmutils.ratio


denominatorclj/s


downcast-fractioncljs

(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.
raw docstring

matches?clj/s

(matches? pattern s)

numeratorclj/s


parse-ratioclj/s

(parse-ratio x)

Parser for the #sicm/ratio literal.

Parser for the #sicm/ratio literal.
raw docstring

powcljs

(pow r m)

ratio?clj/s


rationalizeclj/s

(rationalize x)
(rationalize n d)

Construct a ratio.

Construct a ratio.
raw docstring

ratiotypeclj/s


upcast-numbercljs

(upcast-number op)

Integrals can stay exact, so they become ratios before op.

Integrals can stay exact, so they become ratios before op.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close