# Documentation/How Tos/Calc: EXPONDIST function

From Apache OpenOffice Wiki

## EXPONDIST

Calculates values for an exponential distribution.

### Syntax:

**EXPONDIST(x; λ; mode)**

- The exponential distribution is a continuous probability distribution, with parameter
(rate).**λ**must be greater than zero.**λ**

- If mode is
,**0**calculates the probability density function of the exponential distribution:**EXPONDIST**

- If mode is
,**1**calculates the cumulative distribution function of the exponential distribution:**EXPONDIST**

### Example:

**EXPONDIST(0; 1; 0)**

- returns 1.

**EXPONDIST(0; 1; 1)**

- returns 0.