mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
nix repl: Support printing floating-point numbers
This commit is contained in:
parent
eb1d1ca780
commit
c6184dec6c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue