MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_StringToDouble

Function RM_StringToDouble

app/redis-6.2.6/src/module.c:1369–1372  ·  view source on GitHub ↗

Convert the string into a double, storing it at `*d`. * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is * not a valid string representation of a double value. */

Source from the content-addressed store, hash-verified

1367 * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is
1368 * not a valid string representation of a double value. */
1369int RM_StringToDouble(const RedisModuleString *str, double *d) {
1370 int retval = getDoubleFromObject(str,d);
1371 return (retval == C_OK) ? REDISMODULE_OK : REDISMODULE_ERR;
1372}
1373
1374/* Convert the string into a long double, storing it at `*ld`.
1375 * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is

Callers

nothing calls this directly

Calls 1

getDoubleFromObjectFunction · 0.85

Tested by

no test coverage detected