to_float

Fast but unsafe function to parse a string into a float.

If you trust your input, this is much faster than to!float. Doesn't handle Inf numbers nor Nan, and doesn't throw exceptions. Adapted from Phobos std.conv source code. See NOTICE for licence details.

float
to_float
pure
(
T
)
(
in T p
)
if (
isSomeString!T
)

Meta