std::stof, std::stod, std::stold
cppreference.com
<tbody>
</tbody>
float stof( const std::string& str, size_t *pos = 0 ); |
(1) | ( C++11) |
double stod( const std::string& str, size_t *pos = 0 ); |
(2) | ( C++11) |
long double stold( const std::string& str, size_t *pos = 0 ); |
(3) | ( C++11) |
str.
( std::isspace), . , . :
- . :
- . :
- . :
- ()
INFINFINITY
- . :
- ()
NANNAN()NAN. , . NaN .
pos. pos NULL, .
| str | ||
| pos |
, .
.
(C++11)(C++11)(C++11) |
() |
(C++11)(C++11) |
() |