Click or drag to resize

MoneyRound Method

Rounds values to nearest a number of decimals using the currency rounding method.

Namespace:  LSRetail.Omni.Domain.DataModel.Base.Retail
Assembly:  LSRetail.Omni.Domain.DataModel.Base (in LSRetail.Omni.Domain.DataModel.Base.dll) Version: LS Omni 3.7.0
Syntax
C#
public static decimal Round(
	decimal value,
	int numberOfDecimals,
	CurrencyRoundingMethod roundMethod
)

Parameters

value
Type: SystemDecimal
The currency value or value to be rounded.
numberOfDecimals
Type: SystemInt32
Number of decimals.
roundMethod
Type: LSRetail.Omni.Domain.DataModel.Base.SetupCurrencyRoundingMethod
The method of rounding, Nearest,up and down

Return Value

Type: Decimal
Returns a value rounded for currency.
See Also