Cldr.Unit.zero-question-mark
You're seeing just the function
zero-question-mark
, go back to Cldr.Unit module for more information.
Returns a boolean indicating whether a given unit has a zero value.
Argument
unit
is any unit returned byCldr.Unit.new/2
Examples
iex> u = Cldr.Unit.new!(:foot, 23.3)
#Cldr.Unit<:foot, 23.3>
iex> Cldr.Unit.zero?(u)
false
iex> u = Cldr.Unit.new!(:foot, 0)
#Cldr.Unit<:foot, 0>
iex> Cldr.Unit.zero?(u)
true