On 12/4/10 3:36 PM, "Mark Polesky" <[email protected]> wrote:

> David Kastrup wrote:
>>> We can define all of these as exact quantities:
>>> 
>>> guile> (define mm 1)
>>> guile> (define cm (* 10 mm))
>>> guile> (define in (* 254 (/ mm 10)))
>>> guile> (define pt (/ (* 100 in) 7227))
>> 
>> Probably nice.
> 
> This is easier to read, and numerically the same, right?

Yes, very nice!  I had forgotten that fractions were exact, too.

> 
> (define mm 1)
> (define cm (* 10 mm))
> (define in (* 254/10 mm))
> (define pt (* 2540/7227 mm))

You might want to consider

(define pt (* 100/7227 in))

Since the point is defined in terms of inches, instead of mm.

Thanks,

Carl


_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to