Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Decimal Specifier (DECIMAL=)

The decimal specifier temporarily changes the decimal mode set when the file was opened. It takes the following form:

DECIMAL=c-expr

c-expr

Is a scalar default character expression that evaluates to 'POINT' or 'COMMA'.

Trailing blanks in the expression are ignored. The values specified are without regard to case.

If DECIMAL= does not appear, the decimal mode is unchanged for the statement. If DECIMAL= appears, the I/O control list must contain either a format specifier or a namelist specifier.

The whole and fractional parts of a real number are separated by a decimal symbol. When the decimal mode is 'COMMA', the decimal symbol is a comma, and if the data transfer is list directed, the character used as a value separator becomes a semicolon instead of a comma. When the decimal mode is 'POINT', the decimal symbol is a period.