Plushie.Type.Float (Plushie v0.7.0)

Copy Markdown View Source

Numeric type. Accepts both integers and floats (any number()).

Integers are accepted without coercion so that size: 14 works without requiring 14.0. Supports :min and :max field constraints:

field :opacity, :float, min: 0.0, max: 1.0

Summary

Types

t()

@type t() :: number()