That's less a problem in PostScript than a problem in algorithmic
arithmetic.
Your desired left-most digit is the integer value, before remainder, of
dividing your given number by 100,000.
Your next desired digit is the integer value, before remainder, of dividing
the *remainder* from the previous division by 10,000.
Your next ... " ... " ... by 1,000. % by ... " ... " ... I mean 'ditto' .
And likewise, for 100, 10, and 1, respectively.
That's the algorithmic arithmetic. How to accomplish those 6 steps in
PostScript -- and perhaps how to implement them in a loop -- I leave as a
worthwhile PostScript exercise for you :-) .
Cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.