For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

DIV0() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

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

Syntax​

DIV0(dividend, divisor)

Parameters​

ParameterDescriptionRequired
dividendNumeric expression that evaluates to the value that you want to divideYes
divisorNumeric expression that evaluates to the value that you want to divide byYes

Example​

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