[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] _ClipInt bug




fixed

On Dec 6, 2003, at 2:22 PM, James Harkins wrote:

7.clip(1, 5)
5

7.clip(1.01, 5.01)
7	// huh?

7.clip(1.01, 5)
7 // even if the relevant comparand is an Int, if the other is a float, you get a bad value

0.clip(1, 5.01)
0	// huh?

--
--- james mccartney   james@xxxxxxxxxxxxxx   <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language