Skip to content

Commit 75705c0

Browse files
committed
reference/cmath/float_t.md: Created sample program
1 parent 09bc82a commit 75705c0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

reference/cmath/float_t.md

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

1932
## バージョン
2033
### 言語

0 commit comments

Comments
 (0)