<!--
{
  "documentType" : "article",
  "framework" : "AppStoreConnectAPI",
  "identifier" : "/documentation/AppStoreConnectAPI/dividing-numbers",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Dividing numbers"
}
-->

# Dividing numbers

Return the result of dividing one number into another.

## Discussion

Use the `div()` function in the expression of a matchmaking rule to divide two numbers.

### Declaration

```other
number div(number $dividend, number $divisor)
```

### Parameters

-`dividend`: The number that the function divides.
-`divisor`: The number that the function divides into `dividend`.

### Return value

The result or quotient of dividing `divisor` into `dividend`. If `divisor` is `zero`, `null`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)