(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |