GetUnitDecimals Method

Given a unit of measure symbol, find the decimal precision (i.e. number of decimal points) required by that unit of measure.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Data
Assembly:  Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)

public int GetUnitDecimals(
	string unitId
)

Parameters

unitId
Type: System.String

Return Value

Type: System.Int32
The number decimal places used by the unit of measure.

Community Additions

Show: