Skip to content

Commit dbd3566

Browse files
committed
reference/cmath/double_t.md: New sample program
1 parent 93cfae5 commit dbd3566

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

reference/cmath/double_t.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ namespace std {
1515
1616
[`FLT_EVAL_METHOD`](/reference/cfloat/flt_eval_method.md) が 0 または 1 のとき `double`, 2 のとき `long double`, それ以外の場合は実装依存。
1717
18+
## 使用例
19+
```cpp example
20+
#include <cmath>
21+
#include <iostream>
22+
int main() {
23+
std::double_t num = 1.00001;
24+
std::cout << num << std::endl;
25+
}
26+
```
27+
28+
## 出力例
29+
```
30+
1.00001
31+
```
1832

1933
## バージョン
2034
### 言語

0 commit comments

Comments
 (0)