[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25557: Documentation of format doesn't describe "g" accurately
From: |
Clément Pit--Claudel |
Subject: |
bug#25557: Documentation of format doesn't describe "g" accurately |
Date: |
Sat, 28 Jan 2017 14:14:03 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 2017-01-28 11:25, Eli Zaretskii wrote:
>> Cc: 25557@debbugs.gnu.org
>> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
>> Date: Sat, 28 Jan 2017 11:18:44 -0500
>>
>> I'm trying to get the shortest representation of a decimal number, rounded
>> 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 readable,
>> 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, because many
>> browsers don't know how to parse that.
>
> 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
correctly.
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ément.
signature.asc
Description: OpenPGP digital signature
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/27
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately,
Clément Pit--Claudel <=
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Eli Zaretskii, 2017/01/28
- bug#25557: Documentation of format doesn't describe "g" accurately, Clément Pit--Claudel, 2017/01/28