SoftBank.Cldr.Money.mult-exclamation-mark
You're seeing just the function
mult-exclamation-mark
, go back to SoftBank.Cldr.Money module for more information.
Specs
mult!(Money.t(), Cldr.Math.number_or_decimal()) :: Money.t() | none()
Multiply a Money
value by a number and raise on error.
Arguments
money
is any validMoney.t
types returned byMoney.new/2
number
is an integer, float orDecimal.t
Returns
a
Money.t
orraises an exception
Examples
iex> SoftBank.Cldr.Money.mult!(Money.new(:USD, 200), 2)
#Money<:USD, 400>
SoftBank.Cldr.Money.mult!(Money.new(:USD, 200), :invalid)
** (ArgumentError) Cannot multiply money by :invalid