Click or drag to resize

IUnitOfMeasureExtensionsRoundValue Method

Rounds the specified value according to the rounding rules of the unit of measure.

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static decimal RoundValue(
	this IUnitOfMeasure unit,
	decimal value,
	MidpointRounding mode = 1
)

Parameters

unit
Type: Aloe.EnterpriseOne.Model.Core.MetricsIUnitOfMeasure
The unit of measure, which specifies the rounding rules.
value
Type: SystemDecimal
The value to round.
mode (Optional)
Type: SystemMidpointRounding
The midpoint rounding mode.

Return Value

Type: Decimal
The rounded value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IUnitOfMeasure. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also