Skip to content

Commit 1308e37

Browse files
committed
[Fix] typo
1 parent 08d6044 commit 1308e37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/string/stof.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ int main()
101101

102102
### 出力例
103103
```
104+
---- decimal point
104105
1.5
105106
1
107+
---- base = 8
106108
500
107109
250
108110
---- base = 16
@@ -172,8 +174,8 @@ float stof(const std::wstring& str, std::size_t* idx = nullptr) {
172174
173175
## 関連リンク
174176
### C標準ライブラリに由来する関数
175-
- `atof`: `stold`は`atof`を`std::string`および`std::wsting`に対応させ、戻り値の型を`float`に変更したものと見なせる。
176-
- `strtof`, `wcstof`: `stof`は`strtof`および`wcstof`をそれぞれ`std::string`と`std::wsting`に対応させたものと見なせる。
177+
- `atof`: `stold`は`atof`を`std::string`および`std::wstring`に対応させ、戻り値の型を`float`に変更したものと見なせる。
178+
- `strtof`, `wcstof`: `stof`は`strtof`および`wcstof`をそれぞれ`std::string`と`std::wstring`に対応させたものと見なせる。
177179
178180
### ファミリー
179181
- [`stoi`](stoi.md): 戻り値の型が`int`となったもの。

0 commit comments

Comments
 (0)