# cdfGamma {#cdfgamma}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`cdfGamma(shape, scale, X)`

## Arguments {#arguments}

The shape parameters **shape** and **scale** are both positive floating-point numbers.

**X** is a numeric scalar or vector.

## Details {#details}

Return the value of the cumulative distribution function of a gamma distribution.

## Examples {#examples}

```
cdfGamma(2.31, 0.627, [0.001, 0.5, 0.999]);
// output: [0, 0.127367, 0.38032]

cdfGamma(2.31,0.627, [0.1, 0.3, 0.5, 0.7, 0.9]);
// output: [0.004754, 0.048388, 0.127367, 0.225351, 0.329391]
```

