MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / json_cfg_encode_number_precision

Function json_cfg_encode_number_precision

deps/lua/src/lua_cjson.c:298–303  ·  view source on GitHub ↗

Configures number precision when converting doubles to text */

Source from the content-addressed store, hash-verified

296
297/* Configures number precision when converting doubles to text */
298static int json_cfg_encode_number_precision(lua_State *l)
299{
300 json_config_t *cfg = json_arg_init(l, 1);
301
302 return json_integer_option(l, 1, &cfg->encode_number_precision, 1, 14);
303}
304
305/* Configures JSON encoding buffer persistence */
306static int json_cfg_encode_keep_buffer(lua_State *l)

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected