Liking cljdoc? Tell your friends :D

sicmutils.ratio


denominatorclj/s

source

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.
sourceraw docstring

matches?clj/s

(matches? pattern s)
source

numeratorclj/s

source

parse-ratioclj/s

(parse-ratio x)

Parser for the #sicm/ratio literal.

Parser for the #sicm/ratio literal.
sourceraw docstring

powcljs

(pow r m)
source

ratio?clj/s

source

rationalizeclj/s

(rationalize x)
(rationalize n d)

Construct a ratio.

Construct a ratio.
sourceraw docstring

ratiotypeclj/s

source

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.
sourceraw docstring

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

× close