| Refresh | Home EGTry.com

convert an integer to string for display


int2string

int2string.ps

%!PS

/int2str {10 string cvs} bind def %number => string

/Times-Roman findfont
20 scalefont
setfont

newpath
10 72 moveto
10 int2str show %show keeps the current point

10 0  rmoveto
20 int2str show

10 0  rmoveto
30 int2str show


showpage