<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "P256K",
  "identifier" : "/documentation/P256K/UInt256/mulMod(_:modulus:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "P256K"
    ],
    "preciseIdentifier" : "s:5P256K7UInt256V6mulMod_7modulusA2C_ACtF"
  },
  "title" : "mulMod(_:modulus:)"
}
-->

# mulMod(_:modulus:)

Returns `(self * other) % modulus`.

```
func mulMod(_ other: UInt256, modulus: UInt256) -> UInt256
```

## Discussion> Requires: `modulus != 0`, `self < modulus`, `other < modulus`.