[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: meaning of % 1f in po file
From: |
Joram |
Subject: |
Re: meaning of % 1f in po file |
Date: |
Mon, 02 Mar 2015 08:35:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Hi Federico,
Am 02.03.2015 um 08:23 schrieb Federico Bruni:
> What is the meaning of % 1f here?
>
> compressing over-full page by %.1f staff-spaces
>
> I would have expected something like %d
>
> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=lily/page-layout-problem.cc;h=426299f0ad08001f480890a5081de8a8e6bd8b8e;hb=HEAD#l734
I don't know the context and scheme, but I would expect that %.1f in
("compressing over-full page by %.1f staff-spaces", overflow)
renders the float value ‘overflow’ as a string with one digit after the
point. E.g. 1.234567 becomes "1.2".
Cheers,
Joram