From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Floating-point formatting string Date: Tue, 13 Feb 2007 23:17:03 -0200 Message-ID: <45D2630F.70105@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171415762 9649 80.91.229.12 (14 Feb 2007 01:16:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2007 01:16:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 14 02:15:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HH8kT-0005mb-5f for ged-emacs-devel@m.gmane.org; Wed, 14 Feb 2007 02:15:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HH8kS-0006bh-Gx for ged-emacs-devel@m.gmane.org; Tue, 13 Feb 2007 20:15:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HH8kH-0006bZ-6i for emacs-devel@gnu.org; Tue, 13 Feb 2007 20:15:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HH8kE-0006ay-Ge for emacs-devel@gnu.org; Tue, 13 Feb 2007 20:15:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HH8kE-0006av-C0 for emacs-devel@gnu.org; Tue, 13 Feb 2007 20:15:38 -0500 Original-Received: from smtpout9.uol.com.br ([200.221.4.200] helo=smtp.uol.com.br) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HH8kD-0000n2-W7 for emacs-devel@gnu.org; Tue, 13 Feb 2007 20:15:38 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by socom3.uol.com.br (Postfix) with ESMTP id A715E4003DF4 for ; Tue, 13 Feb 2007 23:15:34 -0200 (BRST) Original-Received: from [201.82.35.154] (unknown [201.82.35.154]) by socom3.uol.com.br (Postfix) with ESMTP id 825644003DBF for ; Tue, 13 Feb 2007 23:15:34 -0200 (BRST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 X-SIG5: db3ce5b3926eff94a3b8778c2b9ccd37 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66356 Archived-At: 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