ConvertValueToRoundDecimal Method
Round the decimals of a number.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static decimal ValueToRoundDecimal(
Object value,
int decimals = 2,
MidpointRounding mode = MidpointRounding.AwayFromZero
)
Public Shared Function ValueToRoundDecimal (
value As Object,
Optional decimals As Integer = 2,
Optional mode As MidpointRounding = MidpointRounding.AwayFromZero
) As Decimal
- value Object
- Value to round the decimals.
- decimals Int32 (Optional)
- Number of decimals.
- mode MidpointRounding (Optional)
- >The rounding mode to use.
DecimalDecimal with the value converted.