(format-as-exponential finite)
(format-as-exponential finite {:provisdom.math.format/keys [digits]})
Formats finite
into exponential form with a number of digits.
Formats `finite` into exponential form with a number of digits.
(format-as-float finite decimal-places)
Formats finite
into float form with a number of decimal places.
Formats `finite` into float form with a number of decimal places.
(format-number number max-length)
(format-number number
max-length
{:provisdom.math.format/keys [max-decimal-places max-digits]})
Formats number
into its best form.
Formats `number` into its best form.
(parse-shorthand s)
Converts a shorthand string, s
, into a number if possible. Otherwise
returns nil.
Converts a shorthand string, `s`, into a number if possible. Otherwise returns nil.
(trim-number-as-string s)
Trims number of any unnecessary characters e.g. -0.3 and 0.30.
Trims number of any unnecessary characters e.g. -0.3 and 0.30.
(unparse-shorthand number max-length)
(unparse-shorthand number
max-length
{:provisdom.math.format/keys [max-decimal-places max-digits
money?]})
Converts number
into shorthand.
Converts `number` into shorthand.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close