Units of measurement

In some locales, long and short distances may be expressed using different systems of measurement.

In Britain for example, imperial units are commonly used for long distances and metric units for shorter distances. The TLocale class provides for this possibility by allowing the units of measurement, for long (miles or kilometers) and short (meters/centimeters or feet/inches) distances to be set independently.

For example, when setting the units of measurement in a locale where only metric units are ever used, use SetUnitsGeneral(EUnitsMetric). In the UK, on the other hand, where short distances are often measured using meters and centimetres, and long distances in miles, you may instead use SetUnitsDistanceShort(EUnitsMetric), and SetUnitsDistanceLong(EUnitsImperial).