core/com.nokia.carbide.cpp.compiler.doc.user/html/c_compiler/c_d_constant_suffix.htm
changeset 1641 2b3996fc09a1
parent 0 fb279309251b
equal deleted inserted replaced
1640:4891d49809bb 1641:2b3996fc09a1
    10 <h3>The &ldquo;D&rdquo; Constant Suffix</h3>
    10 <h3>The &ldquo;D&rdquo; Constant Suffix</h3>
    11 <p>When the compiler finds a &ldquo;D&rdquo; immediately after a floating point constant value, it treats that value as data of type double.</p>
    11 <p>When the compiler finds a &ldquo;D&rdquo; immediately after a floating point constant value, it treats that value as data of type double.</p>
    12 <p>When the pragma <span class="code">float_constants</span>  is enabled, floating point constants should end with a &ldquo;D&rdquo; so that the compiler does not treat them as values of type float.</p>
    12 <p>When the pragma <span class="code">float_constants</span>  is enabled, floating point constants should end with a &ldquo;D&rdquo; so that the compiler does not treat them as values of type float.</p>
    13 <p>For related information, see &ldquo;float_constants&rdquo;.
    13 <p>For related information, see &ldquo;float_constants&rdquo;.
    14 </p>
    14 </p>
    15 <div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
    15 <div id="footer">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
    16 
    16 
    17 
    17 
    18 </body>
    18 </body>
    19 </html>
    19 </html>