A.Integer.div_rem

You're seeing just the function div_rem, go back to A.Integer module for more information.
Link to this function

div_rem(dividend, divisor)

View Source

Specs

div_rem(integer(), pos_integer() | neg_integer()) :: {integer(), integer()}

Returns both the result of div/2 and rem/2 at once.

Examples

iex> A.Integer.div_rem(7, 3)
{2, 1}
iex> A.Integer.div_rem(-99, 2)
{-49, -1}
iex> A.Integer.div_rem(100, 0)
** (ArithmeticError) bad argument in arithmetic expression