unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Floating-point formatting string
@ 2007-02-14  1:17 Vinicius Jose Latorre
  2007-02-14  1:28 ` Juanma Barranquero
  2007-02-14  1:36 ` Chong Yidong
  0 siblings, 2 replies; 8+ messages in thread
From: Vinicius Jose Latorre @ 2007-02-14  1:17 UTC (permalink / raw)
  To: emacs-devel

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"?

   M-: (format "% 3.3f" 1.2) RET
   ==> " 1.200"

Shouldn't it be "  1.200"?

It's working for integer:

   M-: (format "%03d" 1) RET
   ==> "001"      ; OK

   M-: (format "% 3d" 1) RET
   ==> "  1"      ; OK


Vinicius

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-14 16:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-14  1:17 Floating-point formatting string Vinicius Jose Latorre
2007-02-14  1:28 ` Juanma Barranquero
2007-02-14  1:40   ` Vinicius Jose Latorre
2007-02-14  1:36 ` Chong Yidong
2007-02-14  1:42   ` Vinicius Jose Latorre
2007-02-14 16:26   ` Stuart D. Herring
2007-02-14 16:32     ` Andreas Schwab
2007-02-14 16:35     ` Juanma Barranquero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).