Main Content

Numbers Display Period for Decimal Point for All Locales

MATLAB® reads the user locale for all categories except for the numeric category (which is equivalent with LC_NUMERIC). This category controls numeric data formatting and parsing. MATLAB always sets LC_NUMERIC to the C locale.

MATLAB uses a period for a decimal point, regardless of the format specified by the user locale. For example, the value of pi can be displayed as 3,1416 or 3.1416, depending on the format used by a locale. MATLAB always displays 3.1416.

The MATLAB language reserves the use of commas to the cases described in the Symbol Reference topic.

Related Topics