Issue 178494
Summary Implementing control over leading zeros in output of real values
Labels new issue
Assignees
Reporter laoshd
    Implementing control over leading zeros in output of real values

The new features of Fortran 2023:

5.2 US 11. Control over leading zeros in output of real values:

The leading zero mode controls optional leading zero characters in output with f, e, d, and g edit descriptors. When the mode is print, the processor produces a zero in any position that normally contains an optional leading zero. When the mode is suppress, the processor does
not produce such a zero. When the mode is processor defined, the processor has the choice.

The default mode for a file can be set on its open statement with a leading zero= specifier with one of the values print, suppress, and processor defined. If not specified, it is processor defined. An inquire statement can inquire about the mode for a connection with a leading zero= specifier which is assigned one of the values print, suppress, or processor defined if the connection is for formatted i/o and undefined otherwise.

The lzp, lzs, and lz edit descriptors change the mode temporarily during the execution of an output statement to print, suppress, and processor defined, respectively. They have no effect during the execution of an input statement.

This issue is to implement new feature 5.2 US 11.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to