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. */
| 1394 | * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is |
| 1395 | * not a valid string representation of a double value. */ |
| 1396 | int RM_StringToDouble(const RedisModuleString *str, double *d) { |
| 1397 | int retval = getDoubleFromObject(str,d); |
| 1398 | return (retval == C_OK) ? REDISMODULE_OK : REDISMODULE_ERR; |
| 1399 | } |
| 1400 | |
| 1401 | /* Convert the string into a long double, storing it at `*ld`. |
| 1402 | * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is |
nothing calls this directly
no test coverage detected