Logo

Programming-Idioms

History of Idiom 146 > diff from v28 to v29

Edit summary for version 29 by chardan:
New Cpp implementation by user [chardan]

Version 28

2019-09-27, 16:04:33

Version 29

2019-09-27, 22:53:42

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Idiom #146 Convert string to floating point number

Extract floating point value f from its string representation s

Extra Keywords
real conversion
Extra Keywords
real conversion
Code
float fl = std::stof("1.5");
Demo URL
https://godbolt.org/z/Fi7nNl