Send a string reply obtained converting the long double 'ld' into a bulk * string. This function is basically equivalent to converting a long double * into a string into a C buffer, and then calling the function * RedisModule_ReplyWithStringBuffer() with the buffer and length. * The double string uses human readable formatting (see * `addReplyHumanLongDouble` in networking.c). * * The funct
| 1727 | * |
| 1728 | * The function always returns REDISMODULE_OK. */ |
| 1729 | int RM_ReplyWithLongDouble(RedisModuleCtx *ctx, long double ld) { |
| 1730 | client *c = moduleGetReplyClient(ctx); |
| 1731 | if (c == NULL) return REDISMODULE_OK; |
| 1732 | addReplyHumanLongDouble(c, ld); |
| 1733 | return REDISMODULE_OK; |
| 1734 | } |
| 1735 | |
| 1736 | /* -------------------------------------------------------------------------- |
| 1737 | * ## Commands replication API |
nothing calls this directly
no test coverage detected