lilypond-1.3.11
[lilypond.git] / lily / dimensions.cc
blob1023450ee4b6ab0b8d7eccadf1eeba3626034486
1 // dimensions.cc
3 #include "dimensions.hh"
4 #include "debug.hh"
5 #include "string.hh"
7 String
8 print_dimen (Real r)
10 String s = to_str (r, "%.3f");
11 if (s.index_i ("NaN") != -1)
13 warning (_ ("NaN"));
14 s = "0.0";
16 s += "pt";
17 return s;