Hi all
I'm refining an angle, and it only makes sense to allow it to have values between 0 and 360 deg,
prm ang 45 min 0 max 360
Is there a way to allow the refined value to go directly from 360 -> 0 if the refinement is minimising in that direction?
ie, if a parameter has min and max limits and refines to one of those limits, it's value on the next iteration is the other limit
I can kludge it as
prm number 23489
prm ang =Mod(number,360); : 89
but that isn't very satisfying