ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakd_5.4.0.1/rzakdmstxtfltfi.htm

108 lines
6.3 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="reference" />
<meta name="DC.Title" content="FLTFIXDEC (Floating-Point to Fixed Decimal) keyword in printer files" />
<meta name="abstract" content="Use this field-level keyword to print a number in a floating-point field in fixed decimal notation." />
<meta name="description" content="Use this field-level keyword to print a number in a floating-point field in fixed decimal notation." />
<meta name="DC.subject" content="FLTFIXDEC (Floating-Point to Fixed Decimal) keyword, Floating-Point to Fixed Decimal (FLTFIXDEC) keyword" />
<meta name="keywords" content="FLTFIXDEC (Floating-Point to Fixed Decimal) keyword, Floating-Point to Fixed Decimal (FLTFIXDEC) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.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="rzakdmstxtfltfi" />
<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>FLTFIXDEC (Floating-Point to Fixed Decimal) keyword in printer files</title>
</head>
<body id="rzakdmstxtfltfi"><a name="rzakdmstxtfltfi"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">FLTFIXDEC (Floating-Point to Fixed Decimal) keyword in printer files</h1>
<div><p>Use this field-level keyword to print a number in a floating-point
field in fixed decimal notation.</p>
<div class="section"><p>This keyword has no parameters.</p>
<p>When you use FLTFIXDEC,
the floating-point number is first converted to the equivalent number with
an exponent of zero. If the resulting number (digits and exponent) fits in
the field defined by the length and decimal positions values, the number is
printed with the exponent suppressed and aligned at the decimal point. If
the number does not fit in the field, the number prints in standard floating-point
form, n.nnnnnnE+nnn. When the FLTFIXDEC keyword is specified, the length of
the field is the DDS length plus two (the sign and the decimal point). The
minimum length of the field is six.</p>
<div class="p">When the number is too large or
small for the fixed-point form, specified by the FLTFIXDEC keyword with the
total digits and fractional digits specified for the field, a floating-point
form prints that presents the significand as follows (the significand is the
string of digits with the decimal point to the left of the exponent sign E):
<ul><li>Total significand decimal digits: DDS total digits minus 5</li>
<li>Fractional significand digits: DDS total digits minus 6</li>
</ul>
</div>
<p>Option indicators are not valid for this keyword.</p>
</div>
<div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify
the FLTFIXDEC keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A R RECFMT1
A FIELD1 1OF 3 1 2FLTFIXDEC
A FLTPCN(*DOUBLE)
A</pre>
<div class="p">These output numbers are converted
as follows:
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="0" rules="none"><thead align="left"><tr><th align="left" valign="top" width="50%" id="d0e46">Output number</th>
<th align="left" valign="top" width="50%" id="d0e48">Printed as</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="50%" headers="d0e46 ">-4.99994321000000E-004</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">'-4.0000E-004'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">-5.00010000000000E-004</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' -0.001'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">-2.69123400000000E-002</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' -0.027'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">-0.00000000000000E+000</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 0.000'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">0.00000000000000E+000</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 0.000'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">2.71828182845900E+003</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 2718.282'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">3.14159000000000E-052</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 3.14163-052'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">9.87654321012345E+006</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 9876543.210'</td>
</tr>
<tr><td align="left" valign="top" width="50%" headers="d0e46 ">9.99999999960000E+006</td>
<td align="left" valign="top" width="50%" headers="d0e48 ">' 1.0000E+007'</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div>
</div>
</div>
</body>
</html>