equivalent

open fun equivalent(other: Unit<out Any>): Boolean

Checks if this unit is equivalent to another one. Equivalence is determined by both units having the same base type and treat the same base unit magnitude as the same magnitude in their own units, to within EQUIVALENCE_THRESHOLD.

Return

true if both units are equivalent, false if not

Parameters

other

the unit to compare to.