Logo

Programming-Idioms

History of Idiom 146 > diff from v11 to v12

Edit summary for version 12 by Bzzzz:
New D implementation by user [Bzzzz]

Version 11

2017-04-29, 07:06:30

Version 12

2017-07-26, 00:37:09

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 : to;
Code
s = to!string(f);
Doc URL
https://dlang.org/phobos/std_conv.html#to