SYNOPSIS

#include <bson.h>

bool
bson_append_double (bson_t     *bson,
                    const char *key,
                    int         key_length,
                    double      value);

DESCRIPTION

The bson_append_double() function shall append a new element to a bson document of type double.

If key is NULL terminated, -1 may be passed for key_length.

RETURN VALUE

TRUE if successful. Otherwise FALSE.

ERRORS

FALSE is returned if there is insufficient space for the element.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.