From 44c43e183739ddba0b62ede3da2f5e5d4d9a38fe Mon Sep 17 00:00:00 2001 From: Akira Takahashi Date: Tue, 17 Jan 2023 18:31:24 +0900 Subject: [PATCH] =?UTF-8?q?hexfloat=20:=20GCC=E3=81=A7=E5=85=A5=E5=8A=9B?= =?UTF-8?q?=E3=81=A7=E3=81=AE=E4=BD=BF=E7=94=A8=E3=81=AB=E3=83=90=E3=82=B0?= =?UTF-8?q?=E3=81=8C=E3=81=82=E3=82=8B=E3=81=93=E3=81=A8=E3=82=92=E8=A8=98?= =?UTF-8?q?=E8=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/ios.md | 6 +++--- reference/ios/fixed.md | 2 +- reference/ios/hexfloat.md | 9 +++++++-- reference/ios/scientific.md | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/reference/ios.md b/reference/ios.md index edb16e13a6..f1bdad6045 100644 --- a/reference/ios.md +++ b/reference/ios.md @@ -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 | ## バージョン diff --git a/reference/ios/fixed.md b/reference/ios/fixed.md index 246c211180..05eacc1efa 100644 --- a/reference/ios/fixed.md +++ b/reference/ios/fixed.md @@ -10,7 +10,7 @@ namespace std { ``` ## 概要 -浮動小数点数を固定小数点表記で出力することを指示するマニピュレータ。 +浮動小数点数を固定小数点表記で入出力することを指示するマニピュレータ。 ## 効果 `str.setf(ios_base::fixed, ios_base::floatfield)`を実行する。 diff --git a/reference/ios/hexfloat.md b/reference/ios/hexfloat.md index 4b57d76726..9eae0997df 100644 --- a/reference/ios/hexfloat.md +++ b/reference/ios/hexfloat.md @@ -11,7 +11,7 @@ namespace std { ``` ## 概要 -浮動小数点数を十六進法で出力することを指示するマニピュレータ。 +浮動小数点数を十六進法で入出力することを指示するマニピュレータ。 [`printf()`](http://linuxjm.osdn.jp/html/LDP_man-pages/man3/printf.3.html)関数の`%a`/`%A`相当。 @@ -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) diff --git a/reference/ios/scientific.md b/reference/ios/scientific.md index 388f6a913f..b6af309269 100644 --- a/reference/ios/scientific.md +++ b/reference/ios/scientific.md @@ -10,7 +10,7 @@ namespace std { ``` ## 概要 -浮動小数点数を指数表記で出力することを指示するマニピュレータ。 +浮動小数点数を指数表記で入出力することを指示するマニピュレータ。 ## 効果 `str.setf(ios_base::scientific, ios_base::floatfield)`を実行する。