May 26, 200421 yr I have a calculation that works, but I'm thinking there's probably a more elegant solution: If( myNumber - 1 > 0, myNumber - 1, 0 ) I.e., I want to subtract one, but not go into negative numbers. Is there a clever-er calc for this?
May 26, 200421 yr Max( myNumber-1; 0 ) is a little smaller, you might also save a few microseconds since the subtraction was only done once...
May 26, 200421 yr Author That looks right. I thought I'd looked at Max, but maybe it was Min I thought about and Min won't work. Thanks, Shad.
Create an account or sign in to comment