Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Collapse]Document Server
  Product Information
 [Expand]Redistribution and Deployment
 [Expand]Spreadsheet Document Server
 [Expand]XL Export Library
 [Expand]Rich Edit Document Server
 [Expand]Snap Document Server
 [Expand]PDF Document Processor
 [Expand]Compression Library
 [Expand]Bar Code Library
 [Collapse]Unit Conversion Library
   Getting Started
  [Collapse]Examples
    How to: Convert Between Metric Prefixes
    How to: Convert Between Metric and US Units of Measurement
 [Expand]API Reference
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Convert Between Metric and US Units of Measurement

This example illustrates the use of a QuantityValue<T> object and the Unit Conversion Library converters for calculating the volume and the mass of the water in the aquarium tank; followed by a display of the results using US and metric units.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4686.

For a US location, the output string looks like the following.

For a UK location, the output string looks like the following.

How would you rate this topic?​​​​​​​