cara menjepit nilai dengan modulus

let d=max-min;
let c=((value-min)%d)+min;
Charming Copperhead