repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-1.3.11
[lilypond.git]
/
lily
/
dimensions.cc
blob
1023450ee4b6ab0b8d7eccadf1eeba3626034486
1
// dimensions.cc
2
3
#include
"dimensions.hh"
4
#include
"debug.hh"
5
#include
"string.hh"
6
7
String
8
print_dimen
(
Real r
)
9
{
10
String s
=
to_str
(
r
,
"%.3f"
);
11
if
(
s
.
index_i
(
"NaN"
) != -
1
)
12
{
13
warning
(
_
(
"NaN"
));
14
s
=
"0.0"
;
15
}
16
s
+=
"pt"
;
17
return
s
;
18
}
19