Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js number in range

function between(x, min, max) {
  return x >= min && x <= max;
}
// ...
if (between(x, 0.001, 0.009)) {
  // something
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #number #range
ADD COMMENT
Topic
Name
9+2 =