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.

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

Meta