ConversionRatioConvert Method |
Converts the specified value by applying the conversion ratio.
Namespace:
Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:
Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntaxpublic decimal Convert(
decimal fromValue
)
Public Function Convert (
fromValue As Decimal
) As Decimal
public:
Decimal^ Convert(
Decimal^ fromValue
)
member Convert :
fromValue : decimal -> decimal
Parameters
- fromValue
- Type: SystemDecimal
The value to convert.
Return Value
Type:
DecimalThe converted value.
RemarksConvert(Decimal) converts the value by applying the conversion ratio.
Examples
ConversionRatio boxesToPieces = new ConversionRatio(12, 1); //12 pieces in a box
decimal totalBoxes = 3;
decimal totalPieces = boxesToPieces.Convert(totalBoxes); //36
See Also