I guess the trick would be to use the Int(log D) for the outpt command, like this: outpt(8,21-int(log(D)),D They say one has to be good in this business. Well I'm better. -The Godfather