OpenTV Player Web HTML5

Module: num

num

num.js

Methods

staticmodule:num.clamp(number, min, max){number}

Keep a number between a min and a max value

Name Type Description
number number

The number to clamp

min number

The minimum value

max number

The maximum value

Returns:
Type Description
number the clamped number