ConvertValueToDecimal(Object, Decimal) Method

Converts a value into a Decimal type number.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static decimal ValueToDecimal(
	Object value,
	decimal nullValue
)

Parameters

value  Object
Value to convert.
nullValue  Decimal
Default value for nulls.

Return Value

Decimal
Decimal with the value converted.

Remarks

Use for double or single values and does not have losses in decimals.

See Also