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/
162162Hence, we have the following examples:
163163
164164``` 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);
168168 // r.ec == std::errc::result_out_of_range
169169 // r.ptr == str.data() + 7
170170 // result == 0
171171```
172172
173173
174174``` 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);
178178 // r.ec == std::errc::result_out_of_range
179179 // r.ptr == str.data() + 6
180180 // result == std::numeric_limits<double>::infinity()
You can’t perform that action at this time.
0 commit comments