emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Floating-point formatting string


From: Andreas Schwab
Subject: Re: Floating-point formatting string
Date: Wed, 14 Feb 2007 17:32:02 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

"Stuart D. Herring" <address@hidden> writes:

> That doesn't quite explain Vinicius' other examples; in particular,
>
> M-: (format "% 3.3f" 1.2)
> ==> " 1.200"
>
> which has been padded even though it's longer than 3 characters without
> the space.

That's not padding, it's the sign. Similar to the '+' flag.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]