SYNOPSIS int cap( int value, int min, int max) FILE /kernel/simul_efun/math.h DESCRIPTION Caps a value so it is in the range from min to max