1BSON_ITER_AS_DOUBLE(3)              libbson             BSON_ITER_AS_DOUBLE(3)
2
3
4

SYNOPSIS

6          double
7          bson_iter_as_double (const bson_iter_t *iter);
8

PARAMETERS

10iter: A bson_iter_t.
11

DESCRIPTION

13       Fetches the current field as if it were a double.
14
15       bson_iter_as_double() will cast the following types to double
16
17       • BSON_TYPE_BOOL
18
19       • BSON_TYPE_DOUBLE
20
21       • BSON_TYPE_INT32
22
23       • BSON_TYPE_INT64
24
25       Any other value will return 0.
26

RETURNS

28       The value type casted to double.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.25.1                           Nov 08, 2023           BSON_ITER_AS_DOUBLE(3)
Impressum