Skip to main content

Unit Conversion API

  • 2 minutes to read

The Unit Conversion API provides you with a set of extension methods for the System.Double data type. It enables you to easily perform conversions between different units of measurement and operate with quantity values (i.e., physical values expressed in units of measurement).

Important

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this library in production code.

Main Features

The Unit Conversion API supports the following units of measurement:

Physical Quantity

Unit of Measurement

Area

  • AcreInternational
  • AcreStatute
  • Are
  • Hectare
  • Morgen
  • SquareAngstrom
  • SquareFoot
  • SquareInch
  • SquareLightYear
  • SquareMeter
  • SquareMile
  • SquareMileNautical
  • SquarePicaPoint
  • SquareYard

Distance

  • Angstrom
  • Ell
  • Inch
  • Foot
  • LightYear
  • Meter
  • MileNautical
  • MileStatute
  • MileUSSurvey
  • Parsec
  • Pica
  • PicaPoint
  • Yard

Energy

  • BritishThermalUnit
  • CalorieThermodynamic
  • CalorieIT
  • ElectronVolt
  • Erg
  • FootPound
  • HorsePowerHour
  • Joule
  • WattHour

Force

  • Dyne
  • Newton
  • Pond
  • Pound

Information

  • Bit
  • Byte

Magnetism

  • Tesla
  • Gauss

Mass

  • AtomicMassUnit
  • Gram
  • Grain
  • Hundredweight
  • HundredweightImperial
  • Ounce
  • Pound
  • Slug
  • Stone
  • Ton
  • TonImperial

Power

  • HorsePower
  • Watt

Pressure

  • Atmosphere
  • MmHg
  • Pascal
  • PoundPerSquareInch Torr

Speed

  • Knot
  • KnotAdmiralty
  • MetersPerHour
  • MetersPerSecond
  • MilesPerHour

Temperature

  • Celcius
  • Fahrenheit
  • Kelvin
  • Rankine
  • Reaumur

Time

  • Day
  • Hour
  • Minute
  • Second
  • Year

Volume

  • Bushel
  • CubicAngstrom
  • CubicFoot
  • CubicInch
  • CubicLightYear
  • CubicMeter
  • CubicMile
  • CubicMileNautical
  • CubicPicaPoint
  • CubicYard
  • Cup
  • Gallon
  • GallonImperial
  • GrossRegisteredTon
  • Liter
  • MeasurementTon
  • OilBarrel
  • OunceFluid
  • Pint
  • PintImperial
  • Quart
  • QuartImperial
  • Tablespoon
  • Teaspoon
  • TeaspoonModern

Examples