Floating point (F)

You can type any combination of characters in a floating-point field (but only the digits 0 through 9, sign characters (+ or -), E or e, decimal point (.), and comma (,) are valid).

An error message is issued if you type any other character in a floating-point field.

A floating-point value consists of five parts:

The following figure shows the five parts of a floating-point value.


A figure that depicts the
five parts of a floating-point value. These parts are described in the text
following this graphic.
The parts in the figure are as follows:
Notes:
  1. When a floating-point value displays, embedded blanks are removed. On input, you can type blanks before or after a floating-point value. Within a floating-point value, blanks are allowed between the significand and the exponent character.
  2. If you do not type a value in a displayed floating-point field, a positive zero is assumed.
  3. A value of negative zero is valid in a floating-point field. Only the first zero to the left of the decimal point displays. A minus sign displays to the left of the first zero.
  4. A value of positive zero is valid in a floating-point field. The significand sign (+) does not display. Only the first zero to the left of the decimal point displays.
  5. You can type a fixed-point value in a floating-point field.

The display length for a floating-point field is seven positions greater than the length specified in positions 30 through 34. The seven extra positions are for the significand sign, the decimal point or comma, the exponent character, the exponent sign, and the three exponent digits. The Data type and keyboard shift coding example and the Example data type and keyboard shift coding instructions table in the Date (L), Time (T), and Timestamp (Z) topic show how the data you type is passed to your program.