to_floating

Converts the given string slice to an floating point value.

@nogc nothrow
T
to_floating
(
T
)
(
inout(char)[] str
)
if (
__traits(isFloating, T)
)

Parameters

str inout(char)[]

The string to convert.

Return Value

Type: T

The floating point value on success, or 0.0 on failure.

Meta