Check if quantity can be represented in the unit

Usage

validateHasUnit(quantity, unit)

Arguments

quantity

Quantity object

unit

Unit name to check for

Value

If validations are successful, NULL is returned. Otherwise, error is signaled.