---
title: Subtracting numbers
framework: appstoreconnectapi
role: article
role_heading: Article
path: appstoreconnectapi/subtracting-numbers
---

# Subtracting numbers

Return the result of subtracting two numbers.

## Overview

Overview Use the sub() function in the expression of a matchmaking rule to subtract two numbers. Declaration number sub(number $minuend, number $subtrahend) Parameters -minuend: The left side of the subtraction equation. -subtrahend: The right side of the subtraction equation. Return value The result of subtracting subtrahend from minuend. If either parameter isn’t a number, null.

## See Also

### Numeric functions

- [Dividing numbers](appstoreconnectapi/dividing-numbers.md)
