---
name: "bson_iter_overwrite_decimal128"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_iter_overwrite_decimal128"
---

# bson\_iter\_overwrite\_decimal128(3)

## SYNOPSIS

```
bool
bson_iter_overwrite_decimal128 (bson_iter_t *iter, const bson_decimal128_t *value);
```

## PARAMETERS

- •

  **iter**: A *bson\_iter\_t*.

- •

  **value**: The new Decimal128 value.

## DESCRIPTION

The *bson\_iter\_overwrite\_decimal128()* function shall overwrite the contents of a BSON\_TYPE\_DECIMAL128 element in place.

This may only be done when the underlying bson document allows mutation.

It is a programming error to call this function when **iter** is not observing an element of type BSON\_TYPE\_DECIMAL128.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
