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
Syntaxpublic decimal ConvertBack(
decimal toValue
)
Public Function ConvertBack (
toValue As Decimal
) As Decimal
public:
Decimal^ ConvertBack(
Decimal^ toValue
)
member ConvertBack :
toValue : decimal -> decimal
Parameters
- toValue
- Type: SystemDecimal
The converted value to convert back.
Return Value
Type:
DecimalThe original from value.
RemarksConvertBack(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