(approximations language actual-value scale)
Numeric approximations translate given numeric value to a set of simplified approximations of that number. Function parameters:
Resulting approximation provides:
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
(build-expr hedges fav-numbers text given-value)
Build resulting spec conformant numeric expression description
Build resulting spec conformant numeric expression description
(distances-from-edges actual-value [start end])
(unreliable? actual-value scale)
Actual value and scale values which will generate results which are unreliable:
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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close