Plotting utilities shared between the various viewing libraries.
Plotting utilities shared between the various viewing libraries.
(format-number x)(format-number x n)Given a number x, returns a string truncating x to have at most n decimal
places.
n defaults to 2.
Given a number `x`, returns a string truncating `x` to have at most `n` decimal places. `n` defaults to 2.
(label-pi x)(label-pi x precision)Given a numeric value x, returns a string formatting x as a multiple of
π.
Values close to π will receive no prefix; any other number will print with
at most precision decimal places.
Given a numeric value `x`, returns a string formatting `x` as a multiple of `π`. Values close to `π` will receive no prefix; any other number will print with at most `precision` decimal places.
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 |