Locale.getMeasurementSystem

Overview | Methods | This Package | All Packages

Locale.getMeasurementSystem

Retrieves the system of measurement used in the current locale.

Syntax

public int getMeasurementSystem()

Return Value

Returns an integer value that represents the measurement system for the current locale.

Remarks

This method retrieves the measurement system used by a locale. A return value of 0 indicates the metric system is in use in the current locale while a value of 1 indicates that the United States measurement system is in use.

See Also   Locale.MeasurementSystem, setMeasurementSystem