109 lines
6.1 KiB
HTML
109 lines
6.1 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="concept" />
|
|
<meta name="DC.Title" content="Floating point (F)" />
|
|
<meta name="abstract" content="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)." />
|
|
<meta name="description" content="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)." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakcvalentries.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzakcfloatf" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Floating point (F)</title>
|
|
</head>
|
|
<body id="rzakcfloatf"><a name="rzakcfloatf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Floating point (F)</h1>
|
|
<div><p>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).</p>
|
|
<p>An error message is issued if you type any other character
|
|
in a floating-point field.</p>
|
|
<div class="p">A floating-point value consists of five parts: <ul><li>Significand sign</li>
|
|
<li>Significand</li>
|
|
<li>Exponent character</li>
|
|
<li>Exponent sign</li>
|
|
<li>Exponent</li>
|
|
</ul>
|
|
</div>
|
|
<p>The following figure shows the five parts of a floating-point value.</p>
|
|
<br /><img src="rsll613.gif" alt="A figure that depicts the
five parts of a floating-point value. These parts are described in the text
following this graphic." /><br /><div class="p">The parts in the figure are as follows: <ul><li>Significand sign <ul><li>Use + for a positive value and - for a negative value.</li>
|
|
<li>On output, the significand sign is not displayed for a positive value.</li>
|
|
<li>On input, the significand sign is optional. If you do not type a + or
|
|
-, the significand is assumed to be positive.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Significand <ul><li>The digits 0 through 9 and a decimal point (.) or a comma (,) are valid.</li>
|
|
<li>On output, the number of digits in the significand is determined by the
|
|
length specified (positions 30 through 34). The location of the decimal point
|
|
or the comma is determined by the decimal positions you specify (positions
|
|
36 and 37).</li>
|
|
<li>On input, you must type the significand. Only digits 0 through 9 are valid.
|
|
The decimal point or comma is optional. If you do not specify a decimal point,
|
|
a decimal point is assumed on the right.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Exponent character <ul><li>E or e are valid.</li>
|
|
<li>On output, the exponent character always displays.</li>
|
|
<li>On input, you must type an exponent character if the floating-point value
|
|
includes an exponent.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Exponent sign <ul><li>Use + for a positive value and - for a negative value.</li>
|
|
<li>On output, the exponent sign always displays.</li>
|
|
<li>On input, the exponent sign is optional. If you do not type a + or a -,
|
|
the exponent is assumed to be positive.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Exponent <ul><li>The digits 0 through 9 are valid.</li>
|
|
<li>On output, the exponent is always 3 digits.</li>
|
|
<li>On input, you must type at least 1 digit if you type the exponent character
|
|
(E or e). You can type a maximum of 3 digits.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="note"><span class="notetitle">Notes:</span> <ol><li>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.</li>
|
|
<li>If you do not type a value in a displayed floating-point field, a positive
|
|
zero is assumed.</li>
|
|
<li>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.</li>
|
|
<li>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.</li>
|
|
<li>You can type a fixed-point value in a floating-point field.</li>
|
|
</ol>
|
|
</div>
|
|
<p>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 <a href="rzakcdatel.htm">Date (L), Time (T), and Timestamp (Z)</a> topic
|
|
show how the data you type is passed to your program.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakcvalentries.htm" title="The table in this topic shows a list of valid entries for display files.">Valid entries for display files</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |