---
title: "mutableFloatStateOf"
description: "Return a new [MutableFloatState] initialized with the passed in [value]

The MutableFloatState class is a single value holder whose reads and writes are observed by
Compose. Additionally, writes to it are transacted as part of the [Snapshot] system. On the JVM,
values are stored in memory as the primitive `float` type, avoiding the autoboxing that occurs
when using `MutableState<Float>`."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@StateFactoryMarker
public fun mutableFloatStateOf(value: Float): MutableFloatState
```


Return a new `MutableFloatState` initialized with the passed in `value`

The MutableFloatState class is a single value holder whose reads and writes are observed by
Compose. Additionally, writes to it are transacted as part of the `Snapshot` system. On the JVM,
values are stored in memory as the primitive `float` type, avoiding the autoboxing that occurs
when using `MutableState<Float>`.

#### Parameters

| | |
| --- | --- |
| value | the initial value for the `MutableFloatState` |




