# WritePackedFloatDelta(float, float, in StreamCompressionModel)

> Writes a 4-byte floating point value to the data stream. If the data did not change a zero bit is prepended, otherwise a 1 bit is prepended. When reading back the data, the first bit is then checked for whether the data was changed or not.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## WritePackedFloatDelta(float, float, StreamCompressionModel)

```csharp
public bool WritePackedFloatDelta(float value, float baseline, in StreamCompressionModel model)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The current 4-byte floating point value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The previous 4-byte floating value, used to compute the diff.**** (\[StreamCompressionModel]\(/engine/6000.7/script-reference/unity/collections/streamcompressionmodel)): Not currently used.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the write was successful |
