MetricUnitsConverter Class
Converts a value from one metric prefix multiplier to another.
Namespace: DevExpress.UnitConversion
Assembly: DevExpress.Docs.v19.1.dll
Declaration
public class MetricUnitsConverter :
PrefixUnitsConverter<MetricPrefix>
Public Class MetricUnitsConverter
Inherits PrefixUnitsConverter(Of MetricPrefix)
The following members return MetricUnitsConverter objects:
Use the PrefixUnitsConverter<T>.Convert method to perform the conversion.
To calculate the value of femto , use the following code:
double result = Units.Metric.Convert(1.0f, MetricPrefix.Femto, MetricPrefix.None);
Dim result As Double = Units.Metric.Convert(1.0f, MetricPrefix.Femto, MetricPrefix.None)
See Also