# operator %

> Returns the result of a componentwise modulus operation on two float4 vectors.

## Definition

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

## operator %(float4, float4)

Returns the result of a componentwise modulus operation on two float4 vectors.

```csharp
public static float4 operator %(float4 lhs, float4 rhs)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Left hand side float4 to use to compute componentwise modulus.**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Right hand side float4 to use to compute componentwise modulus.

### Returns

| Type                                                                  | Description                                 |
| --------------------------------------------------------------------- | ------------------------------------------- |
| [float4](/engine/6000.7/script-reference/unity/mathematics/float4.md) | float4 result of the componentwise modulus. |

## operator %(float4, float)

Returns the result of a componentwise modulus operation on a float4 vector and a float value.

```csharp
public static float4 operator %(float4 lhs, float rhs)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Left hand side float4 to use to compute componentwise modulus.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Right hand side float to use to compute componentwise modulus.

### Returns

| Type                                                                  | Description                                 |
| --------------------------------------------------------------------- | ------------------------------------------- |
| [float4](/engine/6000.7/script-reference/unity/mathematics/float4.md) | float4 result of the componentwise modulus. |

## operator %(float, float4)

Returns the result of a componentwise modulus operation on a float value and a float4 vector.

```csharp
public static float4 operator %(float lhs, float4 rhs)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Left hand side float to use to compute componentwise modulus.**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Right hand side float4 to use to compute componentwise modulus.

### Returns

| Type                                                                  | Description                                 |
| --------------------------------------------------------------------- | ------------------------------------------- |
| [float4](/engine/6000.7/script-reference/unity/mathematics/float4.md) | float4 result of the componentwise modulus. |
