"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
>> Here's my take on the min(max()) variant:>>> #macro Subclock2(Start, Complete, Cnt)>> min(max(0, (Cnt - Start)/(Complete - Start)), 1)>> #end // macro Subclock2>
Thanks all. And I do like that min-max solution.
Tom A.