Liking cljdoc? Tell your friends :D

numberwords.core


approximationsclj

(approximations language actual-value scale)

Numeric approximations translate given numeric value to a set of simplified approximations of that number. Function parameters:

  • actual-value - a number which has to be expressed
  • language - to be used for text generation
  • scale - specifies the granularity of the rounding: 1/10 for one decimal point, 10 for rounding to tenths, and so on.

Resulting approximation provides:

  • given-value - a number which is a closest approximation of the actual value
  • relation - how given-value relates to actual value: equal, more, less, or around
  • hedges - a list of words describing the relation
  • text - given-number translated to text
Numeric approximations translate given numeric value to a set of simplified
approximations of that number. Function parameters:

  * actual-value - a number which has to be expressed
  * language - to be used for text generation
  * scale - specifies the granularity of the rounding:
            1/10 for one decimal point, 10 for rounding to tenths, and so on.

Resulting approximation provides:

  * given-value - a number which is a closest approximation of the actual value
  * relation - how given-value relates to actual value: equal, more, less, or around
  * hedges - a list of words describing the relation
  * text - given-number translated to text
raw docstring

build-exprclj

(build-expr hedges fav-numbers text given-value)

Build resulting spec conformant numeric expression description

Build resulting spec conformant numeric expression description
raw docstring

distances-from-edgesclj

(distances-from-edges actual-value [start end])

unreliable?clj

(unreliable? actual-value scale)

Actual value and scale values which will generate results which are unreliable:

  • actual-value much bigger that the scale
  • scale is bigger than the actual value
Actual value and scale values which will generate results which are unreliable:
- actual-value much bigger that the scale
- scale is bigger than the actual value
raw docstring

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

× close