Re: best coding for limiting a value

2012-09-05 Thread Robert Klemme
On Wed, Sep 5, 2012 at 11:46 AM, Nathan Weldegorges wrote: > haha good one ;) And it wasn't even intended as joke. I can think of various goals which will prompt different responses, e.g. - performance - readability - shortness Without knowing the goal the question is incomplete and cannot

Re: best coding for limiting a value

2012-09-04 Thread Robert Klemme
On Tue, Sep 4, 2012 at 10:13 PM, Regis d'Aubarede wrote: > 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] "best" according to what metric? Cheers robert -- remember.guy do