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