[metapost] labels in for loops?

Martin Kaffanke technik at roomandspace.com
Thu Nov 15 13:39:46 CET 2007


Am Donnerstag, den 15.11.2007, 12:13 +0100 schrieb Hartmut Henkel:
> On Thu, 15 Nov 2007, Martin Kaffanke wrote:
> 
> >       label.rt(i/10, (.5u, i*u));
> 
>       label.rt(decimal(i/10), (.5u, i*u));

Thanks!

Looking about the result I'd like to make 2 modifications:  I'd like to
have the german "," instead of the "." for the decimal place.  And I'd
like to format it so it has two digits in the decimal place, so 1,00
instead of just 1 and 0,90 instead of 0.9

How can I do that?

Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://tug.org/pipermail/metapost/attachments/20071115/f739dc4d/attachment.bin 


More information about the metapost mailing list