summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/printer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp
index eed9842e2..222a22e34 100644
--- a/src/printer/printer.cpp
+++ b/src/printer/printer.cpp
@@ -95,7 +95,7 @@ void Printer::toStream(std::ostream& out, const SExpr& sexpr) const throw() {
if(sexpr.isInteger()) {
out << sexpr.getIntegerValue();
} else if(sexpr.isRational()) {
- out << sexpr.getRationalValue();
+ out << fixed << sexpr.getRationalValue().getDouble();
} else if(sexpr.isKeyword()) {
out << sexpr.getValue();
} else if(sexpr.isString()) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback