Hamish wrote: > (beware if working with 0.0<1.0 values that use= might cast to int(??)) never mind, that's incorrect. it's fine. (tested with slope*0.01 but not extreme log data [which in raw form probably suffers from FP precision storage issues of its own]) there does seem to be a minor precision issue with the range check though. Hamish