Liking cljdoc? Tell your friends :D
ClojureScript only.

emmy.viewer.plot

Plotting utilities shared between the various viewing libraries.

Plotting utilities shared between the various viewing libraries.
raw docstring

format-numbercljs

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

label-picljs

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

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

× close