The maximum number of characters allowed for this string is two. The returned value is 0 if the metric system (Système International d'unités, or S.I.) is used, and 1 if the U.S. The system of measurement can be obtain from GetLocaleInfoEx API with LCTYPE flag set to LOCALE_IMEASURE. Units of Measurement in Win32Īlthough you need to do your own conversions between the metric and US systems, Win32 NLS APIs can help you detect which system of measurement is used for a given locale. Remember a Mars probe was lost because it's guidance system was developed for one system and the scientists using it thought it was the other system. Also, make sure it is clear to the user what system is currently being displayed. Thus you need to ensure that if you deal with measurements, you can display them using different systems. The kind of measurements referred to are for things such as: Where as the US still uses the imperial system (feet, inches, pounds, etc). The most popular one used is the metric system (meters, liters, grams, etc).
Throughout the world things are measured using different units and scales.