# atomicFetchFmin

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

Atomic fetch-and-min (float).

Atomically stores the minimum of the current value and `value`.
Returns the previous value before the operation.

```ds title="atomicFetchFmin"
export declare function atomicFetchFmin<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:458:468](https://github.com/destack-sh/destack/blob/main/language/library/src/sync/atomic.ds#L458-L468)
