Elex.Percent (Elex v0.4.0)
View SourceA percent stored as percent points.
50% is %Elex.Percent{value: Decimal.new("50")}. Callers build the struct
directly.
Fields
:value- The percent points as aDecimal.t()
Examples
%Elex.Percent{value: Decimal.new("50")}
%Elex.Percent{value: Decimal.new("-10")}
Summary
Types
@type t() :: %Elex.Percent{value: Decimal.t()}
A percent with decimal percent points.