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 is a website building & hosting documentation for Clojure/Script libraries
× close