lilypond-devel
[Top][All Lists]
Advanced

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

Re: paper-defaults-init.ly questions


From: David Kastrup
Subject: Re: paper-defaults-init.ly questions
Date: Fri, 03 Dec 2010 10:47:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Patrick McCarty <address@hidden> writes:

>> 3) I'd like to change this...
>>
>>     mm = 1.0
>>     in = 25.4
>>     pt = #(/ in 72.27)
>>     cm = #(* 10 mm)
>>
>>   ...to this...
>>
>>     mm = #1.0
>>     cm = #(* 10 mm)
>>     in = #(* 25.4 mm)
>>     pt = #(/ in 72.27)
>>
>>   Would that be better?
>

Wouldn't
pt = #(/ (* 2540 mm) 7227)
have smaller absolute error?  The current definition of pt has to round
25.4 to the nearest presentable number, 72.27 to the nearest presentable
number, and then round the result of the division again.

-- 
David Kastrup




reply via email to

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