File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -162,19 +162,19 @@ It is also the approach taken by the [Microsoft C++ library](https://github.com/
162
162
Hence, we have the following examples:
163
163
164
164
``` cpp
165
- double result = -1 ;
166
- std::string str = " 3e-1000" ;
167
- auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
165
+ double result = -1 ;
166
+ std::string str = " 3e-1000" ;
167
+ auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
168
168
// r.ec == std::errc::result_out_of_range
169
169
// r.ptr == str.data() + 7
170
170
// result == 0
171
171
```
172
172
173
173
174
174
``` cpp
175
- double result = -1 ;
176
- std::string str = " 3e1000" ;
177
- auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
175
+ double result = -1 ;
176
+ std::string str = " 3e1000" ;
177
+ auto r = fast_float::from_chars(str.data(), str.data() + str.size(), result);
178
178
// r.ec == std::errc::result_out_of_range
179
179
// r.ptr == str.data() + 6
180
180
// result == std::numeric_limits<double>::infinity()
You can’t perform that action at this time.
0 commit comments