Cldr.Unit.zero
You're seeing just the function
zero
, go back to Cldr.Unit module for more information.
Returns a new unit of the same unit type but with a zero value.
Argument
unit
is any unit returned byCldr.Unit.new/2
Example
iex> u = Cldr.Unit.new!(:foot, 23.3)
#Cldr.Unit<:foot, 23.3>
iex> Cldr.Unit.zero(u)
#Cldr.Unit<:foot, 0.0>