Liking cljdoc? Tell your friends :D
Clojure only.

clj-util.nums


saturate-intclj

(saturate-int i [lower upper])

Saturate and int (like in signal processing). If i is not in range [lower, upper], saturates i to either lower or upper, depending on if i is less than lower, or larger than upper, respectively.

Saturate and int (like in signal processing).
If i is not in range [lower, upper], saturates i to either lower or upper,
depending on if i is less than lower, or larger than upper, respectively.
sourceraw docstring

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

× close