Liking cljdoc? Tell your friends :D

brewtility.precision

Namespace for handling numeric precision

Namespace for handling numeric precision
raw docstring

->1dpclj/s

(->1dp x)

Given a decimal x, returns that number rounded to one decimal place.

Given a decimal `x`, returns that number rounded to one decimal place.
sourceraw docstring

->2dpclj/s

(->2dp x)

Given a decimal x, returns that number rounded to two decimal places.

Given a decimal `x`, returns that number rounded to two decimal places.
sourceraw docstring

->3dpclj/s

(->3dp x)

Given a decimal x, returns that number rounded to three decimal places.

Given a decimal `x`, returns that number rounded to three decimal places.
sourceraw docstring

->precisionclj/s

(->precision x num-decimals)

Given a decimal x and the number of decimal places, returns that number rounded to num-decimals precision

Given a decimal `x` and the number of decimal places, returns that number rounded to `num-decimals` precision
sourceraw docstring

approximates?clj/s

(approximates? n1 n2 variance)

Determine if n2 approximates n1 within variance percent

Determine if `n2` approximates `n1` within `variance` percent
sourceraw docstring

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

× close