|
68 | 68 |
|
69 | 69 | </head>
|
70 | 70 | <body>
|
71 |
| -<header data-kunai-mdinfo="{"meta": {"header": ["cmath"], "namespace": ["std"], "id-type": ["type-alias"], "cpp": ["cpp11"]}, "sources": [], "page_id": ["reference", "cmath", "double_t"]}"> |
| 71 | +<header data-kunai-mdinfo="{"meta": {"header": ["cmath"], "namespace": ["std"], "id-type": ["type-alias"], "cpp": ["cpp11"]}, "sources": [{"id": "ddfe4d3ad71feeeae6bdba7d8e0642283246a55f", "source": "#include <cmath>\n#include <iostream>\nint main() {\n std::double_t num = 1.00001;\n std::cout << num << std::endl;\n}\n"}], "page_id": ["reference", "cmath", "double_t"]}"> |
72 | 72 | <nav class="navbar navbar-default" role="navigation">
|
73 | 73 | <div class="container-fluid">
|
74 | 74 | <div class="navbar-header">
|
|
188 | 188 |
|
189 | 189 | <p class="text-right"><small>
|
190 | 190 | 最終更新日時(UTC):
|
191 |
| - <span itemprop="datePublished" content="2024-06-11T13:45:38"> |
192 |
| - 2024年06月11日 13時45分38秒 |
| 191 | + <span itemprop="datePublished" content="2025-04-23T04:49:45"> |
| 192 | + 2025年04月23日 04時49分45秒 |
193 | 193 | </span>
|
194 | 194 | <br/>
|
195 | 195 | <span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
196 |
| - <span itemprop="name">Akira Takahashi</span> |
| 196 | + <span itemprop="name">rotarymars</span> |
197 | 197 | </span>
|
198 | 198 | が更新
|
199 | 199 | </small></p>
|
|
221 | 221 | <h2>概要</h2>
|
222 | 222 | <p><code>double</code> と同じかそれより広い範囲の値を持つ浮動小数点数型を表す。</p>
|
223 | 223 | <p><code><a href="../cfloat/flt_eval_method.html">FLT_EVAL_METHOD</a></code> が 0 または 1 のとき <code>double</code>, 2 のとき <code>long double</code>, それ以外の場合は実装依存。</p>
|
| 224 | +<h2>使用例</h2> |
| 225 | +<p><div class="yata" id="ddfe4d3ad71feeeae6bdba7d8e0642283246a55f"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../cmath.html"><cmath></a></span><span class="cp"></span> |
| 226 | +<span class="cp">#include</span> <span class="cpf"><a href="../iostream.html"><iostream></a></span><span class="cp"></span> |
| 227 | +<span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span> |
| 228 | + <span class="n">std</span><span class="o">::</span><span class="n">double_t</span> <span class="n">num</span> <span class="o">=</span> <span class="mf">1.00001</span><span class="p">;</span> |
| 229 | + <span class="n"><a href="../iostream/cout.html">std::cout</a></span> <span class="o"><<</span> <span class="n">num</span> <span class="o"><<</span> <span class="n"><a href="../ostream/endl.html">std::endl</a></span><span class="p">;</span> |
| 230 | +<span class="p">}</span> |
| 231 | +</code></pre></div> |
| 232 | +</div></p> |
| 233 | +<h2>出力例</h2> |
| 234 | +<p><pre><code>1.00001 |
| 235 | +</code></pre></p> |
224 | 236 | <h2>バージョン</h2>
|
225 | 237 | <h3>言語</h3>
|
226 | 238 | <ul>
|
|
0 commit comments