Skip to content

Commit

Permalink
hexfloat : GCCで入力での使用にバグがあることを記載
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed Jan 17, 2023
1 parent f86e382 commit 44c43e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions reference/ios.md
Expand Up @@ -47,9 +47,9 @@
| [`dec`](ios/dec.md) | 十進法で入出力(整数) | |
| [`hex`](ios/hex.md) | 十六進法で入出力(整数) | |
| [`oct`](ios/oct.md) | 八進法で入出力(整数) | |
| [`fixed`](ios/fixed.md) | 小数点数表記で出力(浮動小数点数) | |
| [`scientific`](ios/scientific.md) | 指数表記で出力(浮動小数点数) | |
| [`hexfloat`](ios/hexfloat.md) | 十六進法での指数表記で出力(浮動小数点数) | C++11 |
| [`fixed`](ios/fixed.md) | 小数点数表記で入出力(浮動小数点数) | |
| [`scientific`](ios/scientific.md) | 指数表記で入出力(浮動小数点数) | |
| [`hexfloat`](ios/hexfloat.md) | 十六進法での指数表記で入出力(浮動小数点数) | C++11 |
| [`defaultfloat`](ios/defaultfloat.md) | 小数点数・指数表記の自動切り替え(浮動小数点数) | C++11 |

## バージョン
Expand Down
2 changes: 1 addition & 1 deletion reference/ios/fixed.md
Expand Up @@ -10,7 +10,7 @@ namespace std {
```
## 概要
浮動小数点数を固定小数点表記で出力することを指示するマニピュレータ
浮動小数点数を固定小数点表記で入出力することを指示するマニピュレータ
## 効果
`str.setf(ios_base::fixed, ios_base::floatfield)`を実行する。
Expand Down
9 changes: 7 additions & 2 deletions reference/ios/hexfloat.md
Expand Up @@ -11,7 +11,7 @@ namespace std {
```
## 概要
浮動小数点数を十六進法で出力することを指示するマニピュレータ
浮動小数点数を十六進法で入出力することを指示するマニピュレータ
[`printf()`](http://linuxjm.osdn.jp/html/LDP_man-pages/man3/printf.3.html)関数の`%a`/`%A`相当。
Expand All @@ -31,9 +31,14 @@ namespace std {
### 処理系
- [Clang](/implementation.md#clang): 3.0
- [GCC](/implementation.md#gcc): 5.0
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): 2008, 2010, 2012
#### 備考
- GCCは12.0時点で、入力ストリームでの`hexfloat`の使用に対応していない。使用すると値0が入力される (エラーにならない)
- [Bug 81122 - [DR 2381] parsing f stopped after '0' when reading `std::hexfloat >> f;`](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81122)
## 参照
- [`defaultfloat`](defaultfloat.md)
- [`fixed`](fixed.md)
Expand Down
2 changes: 1 addition & 1 deletion reference/ios/scientific.md
Expand Up @@ -10,7 +10,7 @@ namespace std {
```
## 概要
浮動小数点数を指数表記で出力することを指示するマニピュレータ
浮動小数点数を指数表記で入出力することを指示するマニピュレータ
## 効果
`str.setf(ios_base::scientific, ios_base::floatfield)`を実行する。
Expand Down

0 comments on commit 44c43e1

Please sign in to comment.