Commandex.Type.Decimal (Commandex v0.6.0)

Copy Markdown View Source

Casts values to decimals.

Accepts a Decimal, an integer, a float, or a string. NaN and the infinity values are not valid.

This type needs the optional :decimal package:

{:decimal, "~> 3.0"}

Decimal 2.x is not supported.

Summary

Types

t()

@type t() :: Decimal.t()