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

Function RM_StringToLongDouble

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

Convert the string into a long double, storing it at `*ld`. * 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

1375 * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is
1376 * not a valid string representation of a double value. */
1377int RM_StringToLongDouble(const RedisModuleString *str, long double *ld) {
1378 int retval = string2ld(str->ptr,sdslen(str->ptr),ld);
1379 return retval ? REDISMODULE_OK : REDISMODULE_ERR;
1380}
1381
1382/* Convert the string into a stream ID, storing it at `*id`.
1383 * Returns REDISMODULE_OK on success and returns REDISMODULE_ERR if the string

Callers

nothing calls this directly

Calls 2

string2ldFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected