Cldr.Unit.Conversion.convert_to_base_unit-exclamation-mark
You're seeing just the function
convert_to_base_unit-exclamation-mark, go back to Cldr.Unit.Conversion module for more information.
Convert a unit into its base unit and raises on error
For example, the base unit for length
is meter. The base unit is an
intermediary unit used in all
conversions.
Arguments
unitis any unit returned byCldr.Unit.new/2
Returns
unitconverted to its base unit as at:Unit.t()orraises an exception
Example
iex> unit = Cldr.Unit.new!(:kilometer, 10)
iex> Cldr.Unit.Conversion.convert_to_base_unit! unit
#Cldr.Unit<:meter, 10000>