Skip to content

Commit

Permalink
nix repl: Support printing floating-point numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Aug 9, 2017
1 parent eb1d1ca commit c6184de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nix/repl.cc
Expand Up @@ -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;
Expand Down

0 comments on commit c6184de

Please sign in to comment.