diff options
| author | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
| commit | 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch) | |
| tree | 158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/c/numeric%2Fmath%2Ffloat_t.html | |
| parent | 9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff) | |
| download | dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip | |
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/c/numeric%2Fmath%2Ffloat_t.html')
| -rw-r--r-- | devdocs/c/numeric%2Fmath%2Ffloat_t.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/devdocs/c/numeric%2Fmath%2Ffloat_t.html b/devdocs/c/numeric%2Fmath%2Ffloat_t.html deleted file mode 100644 index e9783b11..00000000 --- a/devdocs/c/numeric%2Fmath%2Ffloat_t.html +++ /dev/null @@ -1,34 +0,0 @@ - <h1 id="firstHeading" class="firstHeading">float_t, double_t</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code><math.h></code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl t-since-c99"> <td> <pre data-language="c">typedef /*implementation defined*/ float_t</pre> -</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c99">(since C99)</span> </td> </tr> <tr class="t-dcl t-since-c99"> <td> <pre data-language="c">typedef /*implementation defined*/ double_t</pre> -</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c99">(since C99)</span> </td> </tr> </table> <p>The types <code>float_t</code> and <code>double_t</code> are floating types at least as wide as <code>float</code> and <code>double</code>, respectively, and such that <code>double_t</code> is at least as wide as <code>float_t</code>. The value of <code><a href="../../types/limits/flt_eval_method" title="c/types/limits/FLT EVAL METHOD">FLT_EVAL_METHOD</a></code> determines the types of <code>float_t</code> and <code>double_t</code>.</p> -<table class="t-dsc-begin"> <tr class="t-dsc-hitem"> <th> FLT_EVAL_METHOD </th> <th> Explanation </th> -</tr> <tr class="t-dsc"> <td> <code>0</code> </td> <td> <code>float_t</code> and <code>double_t</code> are equivalent to <code>float</code> and <code>double</code>, respectively </td> -</tr> <tr class="t-dsc"> <td> <code>1</code> </td> <td> both <code>float_t</code> and <code>double_t</code> are equivalent to <code>double</code> </td> -</tr> <tr class="t-dsc"> <td> <code>2</code> </td> <td> both <code>float_t</code> and <code>double_t</code> are equivalent to <code>long double</code> </td> -</tr> <tr class="t-dsc"> <td> <code>other</code> </td> <td> both <code>float_t</code> and <code>double_t</code> are implementation defined </td> -</tr> </table> <h3 id="Example"> Example</h3> <div class="t-example"> <div class="c source-c"><pre data-language="c">#include <float.h> -#include <math.h> -#include <stdio.h> - -int main(void) -{ - printf("%d\n", FLT_EVAL_METHOD); - printf("%zu %zu\n", sizeof(float),sizeof(float_t)); - printf("%zu %zu\n", sizeof(double),sizeof(double_t)); - return 0; -}</pre></div> <p>Possible output:</p> -<div class="text source-text"><pre data-language="c">0 -4 4 -8 8</pre></div> </div> <h3 id="References"> References</h3> <ul> -<li> C11 standard (ISO/IEC 9899:2011): </li> -<ul><li> 7.12 Mathematics <math.h> (p: 231) </li></ul> -<li> C99 standard (ISO/IEC 9899:1999): </li> -<ul><li> 7.12 Mathematics <math.h> (p: 212) </li></ul> -</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="../../types/limits/flt_eval_method" title="c/types/limits/FLT EVAL METHOD"> <span class="t-lines"><span>FLT_EVAL_METHOD</span></span></a></div> -<div><span class="t-lines"><span><span class="t-mark-rev t-since-c99">(C99)</span></span></span></div> </td> <td> use of extended precision for intermediate results: 0 not used, 1 <code>double</code> is used instead of <code>float</code>, 2: <code>long double</code> is used <br> <span class="t-mark">(macro constant)</span> </td> -</tr> </table> <div class="_attribution"> - <p class="_attribution-p"> - © cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br> - <a href="https://en.cppreference.com/w/c/numeric/math/float_t" class="_attribution-link">https://en.cppreference.com/w/c/numeric/math/float_t</a> - </p> -</div> |
