Hi, can one of the experienced lua programmers here think about a special version of format()? This function in general is of great help (short, good readable code), but in combination with direct written pdf code (like in mlib-pdf.lua) is has a major drawback. All numbers are written with fixed size (as normally intended in formatted output). As a result you get '0.000000' instead of a short '0'. Look in an uncompressed pdf and you will see how much space is wasted there in total. Here an example (pdf code segment of a mp graphic). % mps graphic 1: begin q q /Pattern cs 10.000000 M 1 j 0.000000 0.000000 m 94.486725 0.000000 188.977783 0.000000 283.464508 0.000000 c 283.464508 28.346451 l 188.977783 28.346451 94.486725 28.346451 0.000000 28.346451 c 0.000000 0.000000 l W n /MpSh1 sh Q 0 g 0 G 1 J 0.100006 w 0.000000 28.346451 m 283.464508 28.346451 l S 0 g 0 G 0 g 0 G 0.100006 w 283.096863 28.194168 m 283.464508 28.346451 l 283.096863 28.498734 l 283.096863 28.194168 l h B 0 g 0 G Q % mps graphic 1: end With enabled compression things don't look that bad (regarding to file size), but it's still a unnecessary waste. To summarize it: the new function should act like 'format', but it should use the minimal number of digits. Also there should be the possibility to adjust the number of digits after the point (current accuracy for floats: 1/1000000 pt). Any thoughts? Regards, Peter