Liking cljdoc? Tell your friends :D

provisdom.math.format


by-letterclj

source

format-as-exponentialclj

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

format-as-floatclj

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

format-numberclj

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

parse-shorthandclj

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

trim-number-as-stringclj

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

unparse-shorthandclj

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

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

× close