# operator -(float2)

> Returns the result of a componentwise subtraction operation on two float2 vectors.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Mathematics](/engine/6000.6/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

```csharp
public static float2 operator -(float2 val)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)):&#x20;

### Returns

| Type                                                                  | Description                                     |
| --------------------------------------------------------------------- | ----------------------------------------------- |
| [float2](/engine/6000.6/script-reference/unity/mathematics/float2.md) | float2 result of the componentwise subtraction. |
