Skip to main content

MetricUnitsConverter Class

Converts a value from one metric prefix multiplier to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public class MetricUnitsConverter :
    PrefixUnitsConverter<MetricPrefix>

The following members return MetricUnitsConverter objects:

Remarks

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);

Inheritance

See Also