Single

Single struct

Contains methods to work with the single-precision floating-point number.

class Single

Methods

MethodDescription
static float Parse(const String&)Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.
static float Parse(const String&, const SharedPtr<IFormatProvider>&)Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information.
static float Parse(const String&, const SharedPtr<Globalization::CultureInfo>&)
static float Parse(const String&, const SharedPtr<Globalization::NumberFormatInfo>&)
static float Parse(const String&, std::nullptr_t)
static float Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&)Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information and number style.
static float Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&)
static float Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&)
static float Parse(const String&, Globalization::NumberStyles, std::nullptr_t)
static bool TryParse(const String&, float&)Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.
static bool TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, float&)Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information and number style.
static bool TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, float&)
static bool TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, float&)
static bool TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, float&)

Fields

FieldDescription
static constexpr EpsilonSmallest positive value that is greater than zero.
static constexpr MaxValueLargest possible value.
static constexpr MinValueSmallest possible value.
static constexpr NaNValue that is not a number.
static constexpr NegativeInfinityNegative infinity.
static constexpr PositiveInfinityPositive infinity.

See Also