lilypond-devel
[Top][All Lists]
Advanced

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

Re: Odd messaage from 2.13.32


From: Alexander Kobel
Subject: Re: Odd messaage from 2.13.32
Date: Wed, 01 Sep 2010 10:34:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6

On 2010-09-01 04:28, Mike Solomon wrote:
Hey all,
     Just got 2.13.32 running and got the following message:

warning: couldn't fit music on page: overflow is -0.000000

I think it's good to get a warning message when there's spillover, but it
seems odd that an overflow of 0 would solicit a warning message.  Thoughts?

I think this might be due to an actual value just below zero, but not far enough to fit in the seven shown digits. This warning comes from lily/page-layout-problem.cc, line 307-309:
  if (!spacer.fits ())
    warning (_f ("couldn't fit music on page: overflow is %f",
spacer.configuration_length(spacer.force()) - page_height_));

I suspect the warning procedure (macro?) just calls printf, which by default only shows the leading digits:
  printf ("Small number: %f\n", -0.00000000000001);
  printf ("Higher output precision: %.16f\n", -0.00000000000001);
gives
  Small number: -0.000000
  Higher output precision: -0.0000000000000100
on my system.


HTH,
Alexander



reply via email to

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