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. */
| 1375 | * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is |
| 1376 | * not a valid string representation of a double value. */ |
| 1377 | int 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 |