# HalfToFloat(ushort)

> Convert a half precision float to a 32-bit floating point value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static float HalfToFloat(ushort val)
```

### Parameters

**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)): The half precision value to convert.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The decoded 32-bit float. |

### Remarks

Additional Resources: [Mathf.FloatToHalf](/engine/6000.0/script-reference/unityengine/mathf/floattohalf.md).
