ConvertValueToRoundDecimal Method

Round the decimals of a number.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static decimal ValueToRoundDecimal(
	Object value,
	int decimals = 2,
	MidpointRounding mode = MidpointRounding.AwayFromZero
)

Parameters

value  Object
Value to round the decimals.
decimals  Int32  (Optional)
Number of decimals.
mode  MidpointRounding  (Optional)
>The rounding mode to use.

Return Value

Decimal
Decimal with the value converted.

See Also