nix repl: Support printing floating-point numbers

This commit is contained in:
Eelco Dolstra
2017-08-09 15:17:29 +02:00
parent eb1d1ca780
commit c6184dec6c
+4
View File
@@ -652,6 +652,10 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
str << ESC_BLU "«primop-app»" ESC_END;
break;
case tFloat:
str << v.fpoint;
break;
default:
str << ESC_RED "«unknown»" ESC_END;
break;