From: Regis d'Aubarede Date: 2012-09-05T05:13:20+09:00 Subject: best coding for limiting a value A) result=value max ? max : value) B) result=value if value < min then result= min end if value > max then result= max end C) [min,max,value].sort[1] (nota: i am not a student, and neither a teacher :) -- Posted via http://www.ruby-forum.com/.