dinero v1.2.2 Dinero.Sigil View Source
Provides sigil to create Dinero
struct
Link to this section Summary
Functions
Handles the sigil ~m
for Dinero
Link to this section Functions
Link to this macro
sigil_m(arg, currency) View Source (macro)
Handles the sigil ~m
for Dinero
Usage
iex> import Dinero.Sigil
iex> ~m[100.24]uah
%Dinero{amount: 10024, currency: :UAH}
iex> ~m[100]
%Dinero{amount: 10000, currency: :USD}