A commodity amount for custom directive values.
Beancount syntax
400.00 USDElixir struct
%Beancount.Value.Amount{
number: Decimal.new("400.00"),
currency: "USD"
}Or use Beancount.amount_value/2:
Beancount.amount_value(Decimal.new("400.00"), "USD")Fields
number-Decimal.t()quantity (unsigned in custom values).currency- commodity symbol.