SoftBank.Cldr.Money.to_decimal
You're seeing just the function
to_decimal
, go back to SoftBank.Cldr.Money module for more information.
Specs
Returns the amount part of a Money
type as a Decimal
Arguments
money
is any validMoney.t
type returned byMoney.new/2
Returns
- a
Decimal.t
Example
iex> m = SoftBank.Cldr.Money.new("USD", 100)
iex> SoftBank.Cldr.Money.to_decimal(m)
#Decimal<100>