ToSingle()

XmlConvert::ToSingle(String) method

Converts the String to a Single equivalent.

static float System::Xml::XmlConvert::ToSingle(String s)

Arguments

ParameterTypeDescription
sStringThe string to convert.

Return Value

A Single equivalent of the string.

Exceptions

ExceptionDescription
ArgumentNullExceptions is nullptr.
FormatExceptions is not in the correct format.
OverflowExceptions represents a number less than Single::MinValue or greater than Single::MaxValue.

See Also