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

Copy Markdown

For supporting Numbers.minus/1.

Summary

Types

t()

All the types that implement this protocol.

Functions

Unary minus. Should return the negation of the number.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

minus(num)

@spec minus(t()) :: t()

Unary minus. Should return the negation of the number.