Zodish.Type.Decimal (zodish v0.2.4)

View Source

This module describes a Zodish float type.

Summary

Types

t()

@type t() :: %Zodish.Type.Decimal{
  coerce: boolean(),
  gt: Zodish.Option.t(Decimal.t()) | nil,
  gte: Zodish.Option.t(Decimal.t()) | nil,
  lt: Zodish.Option.t(Decimal.t()) | nil,
  lte: Zodish.Option.t(Decimal.t()) | nil
}

Functions

coerce(type, value \\ true)

Either enables or disables coercion for the given Decimal type.

gt(type, value, opts \\ [])

gte(type, value, opts \\ [])

lt(type, value, opts \\ [])

lte(type, value, opts \\ [])

new(opts \\ [])

Creates a new Decimal type.