Click or drag to resize

ConversionRatioConvertBack Method

Converts the specified value back to the original value by applying the ratio backwards.

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public decimal ConvertBack(
	decimal toValue
)

Parameters

toValue
Type: SystemDecimal
The converted value to convert back.

Return Value

Type: Decimal
The original from value.
Remarks
ConvertBack(Decimal) converts the value back to the original value by multiplying by the Divisor and dividing by the Multiplier.
Examples
ConversionRatio boxesToPieces = new ConversionRatio(12, 1); //12 pieces in a box decimal totalPieces = 24; decimal totalBoxes = boxesToPieces.ConvertBack(totalPieces); //2
See Also