1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

nix repl: Support printing floating-point numbers

This commit is contained in:
Eelco Dolstra 2017-07-31 15:15:49 +02:00
parent eb1d1ca780
commit c6184dec6c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

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; str << ESC_BLU "«primop-app»" ESC_END;
break; break;
case tFloat:
str << v.fpoint;
break;
default: default:
str << ESC_RED "«unknown»" ESC_END; str << ESC_RED "«unknown»" ESC_END;
break; break;