# operator %

> Returns the result of a componentwise modulus operation on two double4x4 matrices.

## Definition

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

## operator %(double4x4, double4x4)

Returns the result of a componentwise modulus operation on two double4x4 matrices.

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

### Parameters

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

### Returns

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

## operator %(double4x4, double)

Returns the result of a componentwise modulus operation on a double4x4 matrix and a double value.

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

### Parameters

**** (\[double4x4]\(/engine/6000.6/script-reference/unity/mathematics/double4x4)): Left hand side double4x4 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                                    |
| --------------------------------------------------------------------------- | ---------------------------------------------- |
| [double4x4](/engine/6000.6/script-reference/unity/mathematics/double4x4.md) | double4x4 result of the componentwise modulus. |

## operator %(double, double4x4)

Returns the result of a componentwise modulus operation on a double value and a double4x4 matrix.

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

### Parameters

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

### Returns

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