# Documentation/How Tos/Calc: MOD function

From Apache OpenOffice Wiki

## MOD

Returns the remainder when one integer is divided by another.

### Syntax:

**MOD(number; divisor)**

- For integer arguments this function returns
modulo**number**, that is the remainder when**divisor**is divided by**number**.**divisor**

- This function is implemented as
, and this formula gives the result if the arguments are not integer.**number - divisor * INT( number/divisor)**

### Example:

**MOD(22; 3)**

- returns
, the remainder when**1**is divided by**22**.**3**

**MOD(11.25; 2.5)**

- returns
.**1.25**