# f16

> Represents a 16-bit floating point value (half precision) Warning: this type may not be natively supported by your hardware, or its usage may be suboptimal

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Burst.Intrinsics](/engine/6000.7/script-reference/unity/burst/intrinsics.md)
* **Assembly:** UnityEngine.BurstModule
* **Implements:** [IEquatable\<f16>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct f16 : IEquatable<f16>
```

## Constructors

| Constructor                                                                                                      | Description                                 |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| [f16(System.Single)](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/ctor.md#f16\(float\))            | Constructs a half value from a float value. |
| [f16(Unity.Burst.Intrinsics.f16)](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/ctor.md#f16\(f16\)) | Constructs a half value from a half value.  |

## Methods

| Method                                                                                   | Description                                                         |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Equals](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/equals.md)           | Returns true if the half is equal to a given half, false otherwise. |
| [GetHashCode](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/gethashcode.md) | Returns a hash code for the half.                                   |

## Operators

| Operator                                                                                   | Description                                   |
| ------------------------------------------------------------------------------------------ | --------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/op-equality.md)   | Returns whether two f16 values are equal.     |
| [operator !=](/engine/6000.7/script-reference/unity/burst/intrinsics/f16/op-inequality.md) | Returns whether two f16 values are different. |
