MCPcopy Create free account
hub / github.com/documentdb/documentdb / BsonValueAsDoubleQuiet

Function BsonValueAsDoubleQuiet

pg_documentdb_core/src/query/bson_compare.c:541–546  ·  view source on GitHub ↗

* Similar to BsonValueAsDouble but doesn't throw error if BSON_DECIMAL_128 * is out of range of double */

Source from the content-addressed store, hash-verified

539 * is out of range of double
540 */
541double
542BsonValueAsDoubleQuiet(const bson_value_t *value)
543{
544 bool quiet = true;
545 return BsonValueAsDoubleCore(value, quiet);
546}
547
548
549/*

Callers 6

ParseGeonearRequestFunction · 0.85
tdigest_add_doubleFunction · 0.85
tdigest_add_double_arrayFunction · 0.85
bson_to_double_arrayFunction · 0.85

Calls 1

BsonValueAsDoubleCoreFunction · 0.85

Tested by

no test coverage detected