From: Niklas Frykholm Date: 2001-11-22T05:38:39+09:00 Subject: [ruby-talk:26069] Re: positive [Tobias Reif] > how can I say "if you're positive: stay; if you're negative: become zero"? > > something like > 10.pos -> 10 > -10.pos -> 0 IMHO, the Ruby way is: [x,0].max // Niklas