Numbers Display Period for Decimal Point

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 Comma — , topic of the Programming Fundamentals Symbol Reference.

Was this topic helpful?