# operator %

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

## Definition

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

## operator %(double4, double4)

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

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

### Parameters

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

### Returns

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

## operator %(double4, double)

Returns the result of a componentwise modulus operation on a double4 vector and a double value.

```csharp
public static double4 operator %(double4 lhs, double rhs)
```

### Parameters

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

### Returns

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

## operator %(double, double4)

Returns the result of a componentwise modulus operation on a double value and a double4 vector.

```csharp
public static double4 operator %(double lhs, double4 rhs)
```

### Parameters

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

### Returns

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