1BSON_ITER_AS_DOUBLE(3) libbson BSON_ITER_AS_DOUBLE(3)
2
3
4
6 bson_iter_as_double - bson_iter_as_double()
7
9 bool
10 bson_iter_as_double (const bson_iter_t *iter);
11
13 · iter: A bson_iter_t.
14
16 Fetches the current field as if it were a double.
17
18 bson_iter_as_double() will cast the following types to double
19
20 · BSON_TYPE_BOOL
21
22 · BSON_TYPE_DOUBLE
23
24 · BSON_TYPE_INT32
25
26 · BSON_TYPE_INT64
27
28 Any other value will return 0.
29
31 The value type casted to double.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.17.4 Feb 04, 2021 BSON_ITER_AS_DOUBLE(3)