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. */
| 1367 | * Returns REDISMODULE_OK on success or REDISMODULE_ERR if the string is |
| 1368 | * not a valid string representation of a double value. */ |
| 1369 | int 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 |
nothing calls this directly
no test coverage detected