# DIV0() Function

### Description

Performs division like the division operator (/), but returns 0 when the divisor is 0 (rather than reporting an error)

### Syntax

```sql
DIV0(dividend, divisor)
```

### Parameters

| Parameter | Description | Required |
| --- | --- | --- |
| _dividend_ | Numeric expression that evaluates to the value that you want to divide | Yes |
| _divisor_ | Numeric expression that evaluates to the value that you want to divide by | Yes |

### Example

```sql
SELECT DIV0(additions, additions-additions) as ratio,
FROM   rippling.githubPullRequest.GithubPullRequest; 
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/div0

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
