NumberFormatter.Conversion protocol (number_formatter v1.0.0)

Copy Markdown View Source

Converts values to formats consumable by NumberFormatter.

Summary

Types

t()

All the types that implement this protocol.

Functions

Converts a value to a Decimal.

Converts a value to a Float.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_decimal(value)

Converts a value to a Decimal.

to_float(value)

Converts a value to a Float.