Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 4/28/2026
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Leading Zero Editing

The LZ, LZP, and LZS edit descriptors control the output of optional leading zeros within numeric output fields. These descriptors have no effect during execution of input statements.

These specifiers correspond to the LEADING_ZERO specifier values PROCESSOR_DEFINED, PRINT, and SUPPRESS respectively.

Within a format specification, a leading zero edit descriptor affects all subsequent I, F, E, EN, ES, EX, D, and G descriptors until another leading zero editing descriptor occurs.

Example

Consider the following:

       REAL :: r = 0.25

       !The following statement writes
	      ! 0.25   .50
       WRITE (*, 10) r, r *2.0
 10    FORMAT (LSP, F5.2, " ", LZS, F5.2)
       END