[Top][All Lists]

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

Re: Floating-point formatting string

From: Stuart D. Herring
Subject: Re: Floating-point formatting string
Date: Wed, 14 Feb 2007 08:26:57 -0800 (PST)
User-agent: SquirrelMail/1.4.8-2.el3.7lanl

> In this case, the 03 refers to the width of the entire string "1.200",
which is 5 > 3.
> For example,
>   M-: (format "%08.3f" 1.2)
>   ==> 0001.200

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.


This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during

reply via email to

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