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

NAME

6       bson_iter_as_double - bson_iter_as_double()
7

SYNOPSIS

9          bool
10          bson_iter_as_double (const bson_iter_t *iter);
11

PARAMETERS

13iter: A bson_iter_t.
14

DESCRIPTION

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

RETURNS

31       The value type casted to double.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.17.6                           Jun 03, 2021           BSON_ITER_AS_DOUBLE(3)
Impressum