Vinicius Jose Latorre <address@hidden> writes:
Hi,
It seems that there is a problem with floating-point formatting string
in Emacs 22.
Type
M-: (format "%03.3f" 1.2) RET
==> "1.200"
Shouldn't it be "001.200"?
The Elisp manual says, of the width specification:
If the printed representation of the object contains fewer
characters than this width, then it is padded.
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