Contains methods to work with the single-precision floating-point number. More...
Static Public Member Functions | |
static float | Parse (const String &value) |
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value. More... | |
static float | Parse (const String &value, const SharedPtr< IFormatProvider > &provider) |
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information. More... | |
static float | Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture) |
static float | Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
static float | Parse (const String &value, std::nullptr_t) |
static float | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider) |
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. More... | |
static float | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture) |
static float | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
static float | Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr) |
static bool | TryParse (const String &value, float &result) |
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value. More... | |
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider, float &result) |
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. More... | |
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture, float &result) |
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, float &result) |
static bool | TryParse (const String &value, Globalization::NumberStyles styles, std::nullptr_t, float &result) |
Static Public Attributes | |
static constexpr float | MinValue = std::numeric_limits<float>::lowest() |
Smallest possible value. More... | |
static constexpr float | MaxValue = (std::numeric_limits<float>::max)() |
Largest possible value. More... | |
static constexpr float | Epsilon = std::numeric_limits<float>::epsilon() |
Smallest positive value that is greater than zero. More... | |
static constexpr float | NaN = std::numeric_limits<float>::quiet_NaN() |
Value that is not a number. More... | |
static constexpr float | NegativeInfinity = -std::numeric_limits<float>::infinity() |
Negative infinity. More... | |
static constexpr float | PositiveInfinity = std::numeric_limits<float>::infinity() |
Positive infinity. More... | |
Contains methods to work with the single-precision floating-point number.
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.
value | The string to convert. |
|
static |
|
static |
|
static |
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value using the provided formatting information.
value | The string to convert. |
provider | A pointer to an object that contains the string format information. |
|
static |
|
static |
|
static |
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.
value | The string to convert. |
styles | A bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number. |
provider | A pointer to an object that contains the string format information. |
|
static |
Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.
value | The string to convert. |
result | The reference to a single-precision floating-point variable where the result of the conversion is put. |
|
static |
|
static |
|
static |
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.
value | The string to convert. |
styles | A bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number. |
provider | A pointer to an object that contains the string format information. |
result | The reference to a single-precision floating-point variable where the result of the conversion is put. |
|
static |
Smallest positive value that is greater than zero.
Largest possible value.
Smallest possible value.
Value that is not a number.
|
staticconstexpr |
Negative infinity.