Numbers.Protocols.Division protocol (numbers v5.2.5)

Copy Markdown

For supporting Numbers.div/2.

Summary

Types

t()

All the types that implement this protocol.

Functions

Divides the rhs by the lhs.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

div(a, b)

@spec div(t(), t()) :: t()

Divides the rhs by the lhs.

To be clear, this division operation is supposed to be precise.