From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#25557: Documentation of format doesn't describe "g" accurately Date: Sat, 28 Jan 2017 14:14:03 -0500 Message-ID: <5b3f43e8-195d-777c-e660-302a3baf5f61@live.com> References: <78ace0d5-59f1-0d7d-1f0e-b589a947d76c@live.com> <83poj7zika.fsf@gnu.org> <83a8abyzqs.fsf@gnu.org> <1b896eed-9041-83d3-bd46-cde7e534223e@live.com> <837f5fyy09.fsf@gnu.org> <2763023c-ff54-ea65-c1b0-0c22e948f48a@live.com> <831svnywwf.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tJ4Sfx1oHkJCJWkf0v6TIXNlV2do653K6" X-Trace: blaine.gmane.org 1485630926 12466 195.159.176.226 (28 Jan 2017 19:15:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 19:15:26 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: 25557@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 28 20:15:22 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXYSr-0001z2-Ni for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 20:15:09 +0100 Original-Received: from localhost ([::1]:52888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXYSw-0003Hf-OL for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 14:15:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXYSp-0003Fl-Jf for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2017 14:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXYSk-0000uV-EN for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2017 14:15:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXYSk-0000uR-BN for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2017 14:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cXYSk-0007GF-08 for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2017 14:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jan 2017 19:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25557-submit@debbugs.gnu.org id=B25557.148563086527852 (code B ref 25557); Sat, 28 Jan 2017 19:15:01 +0000 Original-Received: (at 25557) by debbugs.gnu.org; 28 Jan 2017 19:14:25 +0000 Original-Received: from localhost ([127.0.0.1]:49375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXYS9-0007F9-FA for submit@debbugs.gnu.org; Sat, 28 Jan 2017 14:14:25 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.13]:50208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXYS6-0007Ew-Ty for 25557@debbugs.gnu.org; Sat, 28 Jan 2017 14:14:23 -0500 Original-Received: from [18.111.113.197] ([18.111.113.197]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.184]) with ESMTPSA (Nemesis) id 0McWMC-1cp5Kp30xE-00Hi5F; Sat, 28 Jan 2017 20:14:15 +0100 In-Reply-To: <831svnywwf.fsf@gnu.org> X-Provags-ID: V03:K0:BOkWtfjaa9m7I5Z+7tgfkL3jG8Ni3wrfKE+gLAb4BKQxD54UgfA 74ecLmtFiTTyklNo3o9yH4YwryTyuS7y1XT0LAFE7nyCu0rx7I+O8lSCy+rMkHUo441xaX+ va7B/7dWw724SIkmRpgY3mzIQJY0q1dVLgKmn1RN1xbQJnXP8xgsLVRYuKSuY5d/8TsXa3K v+d92JbF3EC3O2mSfeA0A== X-UI-Out-Filterresults: notjunk:1;V01:K0:WG3TuTFjWD8=:TwQ/rPLbhze+dtYB7WSgHV 6rJDCdrihc4QzVWxbXgIs17LNcj6kKGGUPS8Fa6pkmy2OGLD43dCe8Dz/c7qilqL2eIiNNZon gJO7LhPVJ7tFyBO02Kim+hgGio1mQuWoS0Qxl4kA+y056WP+iRjLBtYHnZ2ShAPK6nPPyuzu2 vB71DQ5SXmhr7NFQ3kbtx05RGF5kTlmtweMUkA0/pAfZaViWyOHIB6eM2VSE2IIoioWggNLug bm84c7pKHljX2jMohTmXox5WqcjZZ+d3tsVEQ5el6SBknoNc2VQ2uUYci9P1zjigNnha6LCNF hOWXgv9lR4D9+SJYwDM9WXewBZCYOvtM9aTMuJjP0L6GAfO29yN+E/w8+g1GnmsWvvZUelTf6 tN4HnqxVNnbO7L9972uLn6iXkwyrKxCGZ+RxBdztFQifUmUuIuCZqmqckrMtiEDIXOimM8HFD eSPINdLnvlvqGXHG/f975jV1gJHPdjQxeLqjI7gsggjxmuwX84Vkx44jCb8J0LPuDCTuEe00M gcSnlLFoQa+JWIKypKmKKL3CBUXHfoQoE9LXvi0FCQAT8fOAH+EHSCQRgET8Z97HQIJkjZEoG y0KvXcB0ATV/YTmu5439fgh9dc0RXGxxe7gE73wFKAcAadjJVbEydnyBpQ6iajh5G2VljBl/C lLC7cmbtC+N6L0f9YR9p+taQBai053QqzY26PtrDdL2ewCA/RI/K9sIB66+Ln1Fam+oQ= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128730 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tJ4Sfx1oHkJCJWkf0v6TIXNlV2do653K6 Content-Type: multipart/mixed; boundary="4dvUfhhc7PRFnaKV815WPITscTCl8xhA0"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Eli Zaretskii Cc: 25557@debbugs.gnu.org Message-ID: <5b3f43e8-195d-777c-e660-302a3baf5f61@live.com> Subject: Re: bug#25557: Documentation of format doesn't describe "g" accurately References: <78ace0d5-59f1-0d7d-1f0e-b589a947d76c@live.com> <83poj7zika.fsf@gnu.org> <83a8abyzqs.fsf@gnu.org> <1b896eed-9041-83d3-bd46-cde7e534223e@live.com> <837f5fyy09.fsf@gnu.org> <2763023c-ff54-ea65-c1b0-0c22e948f48a@live.com> <831svnywwf.fsf@gnu.org> In-Reply-To: <831svnywwf.fsf@gnu.org> --4dvUfhhc7PRFnaKV815WPITscTCl8xhA0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-01-28 11:25, Eli Zaretskii wrote: >> Cc: 25557@debbugs.gnu.org >> From: Cl=C3=A9ment Pit--Claudel >> Date: Sat, 28 Jan 2017 11:18:44 -0500 >> >> I'm trying to get the shortest representation of a decimal number, rou= nded to .01, not using scientific/exponential notation. I'm using values= computed in ELisp to produce CSS style sheets, which until recently didn= 't allow for exponential notation. I'd like these stylesheets to be read= able, so 100% is better 100.00%, and 3.35em is better than 3.35004em. If = my code is fed a value of 5000px, I don't want it converted to 5e+3px, be= cause many browsers don't know how to parse that. >=20 > Then I think you want to use %d for integral values and %.2f for the > rest. No, that still won't do: it wouldn't format 3.0 as "3", if I understand c= orrectly. But I also think this is a minor matter, and there are many more pressing= problems and exciting areas :) Thanks for your help and patience, Eli! Cheers, Cl=C3=A9ment. --4dvUfhhc7PRFnaKV815WPITscTCl8xhA0-- --tJ4Sfx1oHkJCJWkf0v6TIXNlV2do653K6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYjO2DAAoJEPqg+cTm90wjomEP/0hOkCcOePCkG9BwwP2jJ/5+ F9PqXSLPbYIXBejzfXcrDn3q4C0Qoga8m2vIn22cYHADv4nSdSjkJuIEwZ9YGYtC iUF079/+rHRkFp9VVTECXroxGZnxlqxt3d//NNh44ULMOS+8BS68tFcNmbaeHOaW 3PbTC1xslTSaqv/d8mDQzHCqeBuvEcd/pEPELmN0kLY6mOOgtaYzHHo788+/2nzu ocKRy5h6tFMQxPo5ofowd9Ugiud9Rff0ekjjssUG7IcSKIPqzNZJjyzpIx3SDgLV MT8s8BsnQi5yDPQ8ME6++p5V0NjX9eGG+m94o9bfzHiFfA5xFH++X5V44R5iSkbf Yax4NTsEdPfayZh3rVYRFhnIhVMdh5jXd2WwOK5s0uLT5+uxWkgRnFFksGhCrkb8 +CtOBMO/nPsWHZKzCQo49VMl0v0G+mnVXCcBiZ9tSwf22YSB/7gT/mQiZ6nrLxzR 7zQvBDwSAIbR0XVr2xxwdm/bvWOGPYKdnIXM++xIlnjluFIbBgmJH8R4+Om8kkUA XnFqUbsuS+b1wsIKW8MmTqmVNHAE6gVN9inmgb0WnO9D/XSMmfBA6Q/docB5yj3k Koghfa58J0YbWcDRDaYz0L/QTRExTyXqMtuWXwYVUD0M4Wn78H2d1SIqQk8IBTZy Rx7vwNTSkE1dF37ul6CK =xuDH -----END PGP SIGNATURE----- --tJ4Sfx1oHkJCJWkf0v6TIXNlV2do653K6--