From 62b2642c518bf3cc19b2578598f79598b54309e8 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 6 Dec 2018 11:44:17 +0100 Subject: [PATCH] RESP3: redis-cli: show the double as received from Redis. --- src/redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 15042b97..b8934eda 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -811,7 +811,7 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) { out = sdscatprintf(out,"(integer) %lld\n",r->integer); break; case REDIS_REPLY_DOUBLE: - out = sdscatprintf(out,"(double) %.17g\n",r->dval); + out = sdscatprintf(out,"(double) %s\n",r->str); break; case REDIS_REPLY_STRING: /* If you are producing output for the standard output we want