<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>5.4.7. Float Constant</title><link href="style.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.72.0" name="generator"><link rel="start" href="index.html" title="The VIATRA2 Model Transformation Framework"><link rel="up" href="sec_ASMConstants.html" title="5.4. Constants"><link rel="prev" href="def_IntConstant.html" title="5.4.6. Integer Constants"><link rel="next" href="def_ModelElementConstant.html" title="5.4.8. Model Element Constant"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">5.4.7. Float Constant</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="def_IntConstant.html">Prev</a> </td><th align="center" width="60%">5.4. Constants</th><td align="right" width="20%"> <a accesskey="n" href="def_ModelElementConstant.html">Next</a></td></tr></table><hr></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="def_FloatConstant"></a>5.4.7. Float Constant</h4></div></div></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip: Description"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Tip]" src="images/tip.png"></td><th align="left"><a name="def_FloatConstant_Description"></a>Description</th></tr><tr><td valign="top" align="left"><p> | |
A <span class="strong"><strong>Float constant</strong></span> | |
<a name="N12AE9" class="indexterm"></a> | |
<a name="N12AEE" class="indexterm"></a> | |
is a numeric value with a floating point expression. | |
</p></td></tr></table></div><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Important: Syntax"><tr><td valign="top" align="center" rowspan="2" width="25"><img alt="[Important]" src="images/important.png"></td><th align="left"><a name="def_FloatConstant_Syntax"></a>Syntax</th></tr><tr><td valign="top" align="left"><pre class="programlisting"> | |
FloatConstantAST ::= <a href="def_FloatLiteral.html" title="6.3.2. Float Literal">DoubleLiteral</a> | <a href="def_FloatLiteral.html" title="6.3.2. Float Literal">FloatingPointLiteral</a> | |
</pre><p> | |
A float constant can be represented in an arbitrary combination of the | |
floating point representation and the scientific representation. | |
</p></td></tr></table></div><div class="example"><a name="def_FloatConstant_Example"></a><p class="title"><b>Example 2.10. Floating point constants</b></p><div class="example-contents"><p> | |
<pre class="programlisting"> | |
Floating point representation: 1.5 4, 1 3 2.4 5 6 | |
Scientific representation: 1E-6, 3.5 6e2 | |
Combination: 4 3 2e-8, 1 3 3.5 6 7E6 | |
</pre> | |
</p></div><p></p></div><br class="example-break"><div class="highlights"><a name="def_FloatConstant_DefinedIn"></a><p><b>Defined In: </b> | |
<a href="def_AsmConstant.html" title="5.4.1. ASM Constant (Value)">ASM constant</a> | |
</p></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="def_IntConstant.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="sec_ASMConstants.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="def_ModelElementConstant.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">5.4.6. Integer Constants </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> 5.4.8. Model Element Constant</td></tr></table></div></body></html> |