ibm-information-center/dist/eclipse/plugins/i5OS.ic.rbam6_5.4.0.1/rbam6fltpntcon.htm

73 lines
4.5 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="Floating-point constants" />
<meta name="abstract" content="A floating-point constant is a representation of a numerical constant, shown as an optional sign followed by one or more digits and a decimal point, which may be at the end." />
<meta name="description" content="A floating-point constant is a representation of a numerical constant, shown as an optional sign followed by one or more digits and a decimal point, which may be at the end." />
<meta name="DC.Relation" scheme="URI" content="rbam6constvalues.htm" />
<meta name="DC.Relation" scheme="URI" content="../rzahg/rzahgdds.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbam6fltpntcon" />
<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 constants</title>
</head>
<body id="rbam6fltpntcon"><a name="rbam6fltpntcon"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Floating-point constants</h1>
<div><p>A floating-point constant is a representation of a numerical constant,
shown as an optional sign followed by one or more digits and a decimal point,
which may be at the end. </p>
<div class="section"><p>This representation consists of:</p>
<ul><li>A significand sign: The significand sign may be + or -. The significand
sign is optional; it is assumed to be + if no sign is specified.</li>
<li>A significand: The significand must contain a decimal point. The maximum
number of digits that can be specified for the significand is 253; however,
only the first 17 significant digits are used.</li>
<li>An exponent character: The exponent character must be E.</li>
<li>An exponent sign: The exponent sign must be + or -. The significand sign
is optional; it is assumed to be + if no sign is specified.</li>
<li>An exponent: The exponent must be an integer; numbers 0 through 9 are
valid. The maximum number of digits that can be specified is three.</li>
</ul>
<p>All floating-point constants are stored as double-precision values.
No blanks are allowed between any of the parts of a floating-point constant,
and the parts must be in the order listed above.</p>
<p>Some commands have
parameters for which floating-point constants can be specified:</p>
<ul><li> <span class="cmdname">Call Program (CALL)</span> or <span class="cmdname">Call Procedure (CALLPRC)</span> command:
You can use the PARM parameter to pass a floating-point constant to a called
program. Any program you call must receive a floating-point constant as a
double precision value. </li>
<li><span class="cmdname">Change Program Variable (CHGPGMVAR)</span> command: You can
use the VALUE parameter to change a floating-point variable in a program.</li>
<li>Copy File (CPYF) command: You can use floating-point construction in the
FROMKEY, TOKEY, and INCREL parameters to select which records are copied from
a database file.</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbam6constvalues.htm" title="A constant value is the actual value. The types of constants are character string (includes names, date and hexadecimal values), decimal, and logical.">Constant value</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../rzahg/rzahgdds.htm">DDS</a></div>
</div>
</div>
</body>
</html>