emacs-devel
[Top][All Lists]
Advanced

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

Floating-point formatting string


From: Vinicius Jose Latorre
Subject: Floating-point formatting string
Date: Tue, 13 Feb 2007 23:17:03 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1

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





reply via email to

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