Logo

Programming-Idioms

History of Idiom 146 > diff from v15 to v16

Edit summary for version 16 by abertk:
New D implementation by user [abertk]

Version 15

2017-09-29, 14:55:29

Version 16

2018-02-04, 17:13:11

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
Imports
import std.conv;
Code
float f = s.to!float;
Doc URL
https://dlang.org/phobos/std_conv.html#to