Converting measurements (C++)
Go Up to Using the VCL/RTL (C++)
The System.ConvUtils unit declares a general-purpose Convert function that you can use to convert a measurement from one set of units to another. You can perform conversions between compatible units of measurement such as feet and inches or days and weeks. Units that measure the same types of things are said to be in the same conversion family. The units you're converting must be in the same conversion family. For information on doing conversions, see the section Performing conversions (C++).
The System.StdConvs unit defines several conversion families and measurement units within each family. In addition, you can create customized conversion families and associated units using the RegisterConversionType and RegisterConversionFamily functions. For information on extending conversion and conversion units, see the section Adding new measurement types (C++).