# atomicFetchFadd

`import { atomicFetchFadd } from "destack:sync";`

Atomic fetch-and-add (float).

Atomically adds `value` to the value at `ptr`.
Returns the previous value before the addition.

```ds title="atomicFetchFadd"
export declare function atomicFetchFadd<T: Float>(ptr: *T, value: T, order: MemoryOrdering, scope: AtomicScope, memoryScope: MemoryScope, regions: MemoryRegionSet, isVolatile: boolean, isMakeAvailable: boolean, isMakeVisible: boolean): T
```

[language/library/src/sync/atomic.ds:441:451](https://github.com/destack-sh/destack/blob/main/language/library/src/sync/atomic.ds#L441-L451)
