Returns a number whose value is limited to the given range.
https://stackoverflow.com/a/11409944/1938970
Returns a number whose value is limited to the given range.