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
2002->2003
[lilypond.git]
/
lily
/
dimensions.cc
blob
20d9b8e32eb772853d1de98d62c90a49c3ea0a3e
1
// dimensions.cc
2
3
#include
"dimensions.hh"
4
#include
"warn.hh"
5
#include
"string.hh"
6
7
String
8
print_dimen
(
Real r
)
9
{
10
String s
=
to_string
(
r
,
"%.3f"
);
11
if
(
s
.
index
(
"NaN"
) != -
1
)
12
{
13
warning
(
_
(
"NaN"
));
14
s
=
"0.0"
;
15
}
16
s
+=
"pt"
;
17
return
s
;
18
}
19