lnNum = 4567 ? Round(lnNum, -(Len(Transform(lnNum))-1))>Hi everyone,
>5->5 ROUND(...,0)
>52->50 ROUND(...,-1)
>333->300 ROUND(...,-2)
>4567->5000 ROUND(...,-3)
>1234567->1000000, e.g. to the round number.
>
>What would be the simplest algorithm for this?
>
>Thanks in advance.--sb--