Click or drag to resize

IUnitOfMeasure Interface

This interface is used simply to denote objects, which represent a unit of measure like currency, SI measurement unit, etc.

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public interface IUnitOfMeasure

The IUnitOfMeasure type exposes the following members.

Properties
  NameDescription
Public propertyCode
Gets the code of the unit of measure.
Public propertyName
Gets the name of the unit of measure.
Public propertyRoundingPrecision
Gets the rounding precision. This is the smallest number, which can represent quantity of this unit of measure.
Top
Extension Methods
  NameDescription
Public Extension MethodRoundValue
Rounds the specified value according to the rounding rules of the unit of measure.
(Defined by IUnitOfMeasureExtensions.)
Top
Remarks
The IUnitOfMeasure interface is used to type-protect other interfaces and methods, which accept units of measure as parameters. In the future (in a breaking change), the interface might start requiring measurement code and other properties, related to the measure.
See Also