# add

## Syntax

`int add(int a, int b, int c)`

## Arguments

**a**
- Any integer.

**b**
- Any integer.

**c**
- Any integer.

## Return

- The lower integer value of c and (a+b).

## Description

- This function adds 'a' to 'b', then compares the result with 'c', and returns the lower of the two values. Please note that this function has been retained for compatibility with Filter Factory, and that min(a+b,c) will give the same result and compute faster.

## Example

`int p = add(3,2,1); // sets 'p' to 1, because 3+2=5, and 5>1 !`

## Also see

- sub,min,max

## Comments

- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.