bson_iter_double() — libbson 1.6.3

- libbson 1.6.3 »
- API Reference »
- bson_iter_t

# bson_iter_double()

## Synopsis

    #define BSON_ITER_HOLDS_DOUBLE(iter) \
       (bson_iter_type ((iter)) == BSON_TYPE_DOUBLE)

    double
    bson_iter_double (const bson_iter_t *iter);

## Parameters

- `iter`: A bson_iter_t.

## Description

Fetches the contents of a BSON_TYPE_DOUBLE field.

## Returns

A double.

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.