Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c limit value range

#define ConstrainVal(val,min,max) ( (val > max) ? (max) : ( (val < min) ? (min) : (val) ) )
 
PREVIOUS NEXT
Tagged: #limit #range
ADD COMMENT
Topic
Name
7+2 =