Cldr.Unit.value

You're seeing just the function value, go back to Cldr.Unit module for more information.

Specs

value(unit :: t()) :: value()

Return the value of the Unit struct

Arguments

Returns

  • an integer, float or Decimal representing the amount of the unit

Example

iex> Cldr.Unit.value Cldr.Unit.new!(:kilogram, 23)
23