[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
**Subject**: **Re: number, math, and metatable?**
**From**: Coda Highland <chighland@...>
**Date**: Sat, 3 May 2014 15:38:28 -0700

On Sat, May 3, 2014 at 11:31 AM, Tim Hill <drtimhill@gmail.com> wrote:
> local limtied = max(min(input, 1000), 100))
> ->
> local limtied = input : min(1000) : max(100)
Of course, I'd rather see
local limited = clamp(input, 100, 1000)
any day of the week.
/s/ Adam

**References**:
**number, math, and metatable?, ***Petite Abeille*
**Re: number, math, and metatable?, ***Dirk Laurie*
**Re: number, math, and metatable?, ***Thomas Jericke*
**Re: number, math, and metatable?, ***Tim Hill*