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

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to