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

Static Public Member Functions

static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API float Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API float Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static float Parse (const String &value, std::nullptr_t)
 
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API float Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static ASPOSECPP_SHARED_API float Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static ASPOSECPP_SHARED_API float Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture, float &result)
 
static ASPOSECPP_SHARED_API bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, float &result)
 
static ASPOSECPP_SHARED_API bool TryParse (const String &value, Globalization::NumberStyles styles, std::nullptr_t, float &result)
 

Static Public Attributes

static ASPOSECPP_SHARED_API constexpr float MinValue = std::numeric_limits<float>::lowest()
 Smallest possible value. More...
 
static ASPOSECPP_SHARED_API constexpr float MaxValue = (std::numeric_limits<float>::max)()
 Largest possible value. More...
 
static ASPOSECPP_SHARED_API constexpr float Epsilon = std::numeric_limits<float>::epsilon()
 Smallest positive value that is greater than zero. More...
 
static ASPOSECPP_SHARED_API constexpr float NaN = std::numeric_limits<float>::quiet_NaN()
 Value that is not a number. More...
 
static ASPOSECPP_SHARED_API constexpr float NegativeInfinity = -std::numeric_limits<float>::infinity()
 Negative infinity. More...
 
static ASPOSECPP_SHARED_API constexpr float PositiveInfinity = std::numeric_limits<float>::infinity()
 Positive infinity. More...
 

Detailed Description

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

Member Function Documentation

◆ Parse() [1/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value)
static

Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.

Parameters
valueThe string to convert.
Returns
The single-precision floating-point value equal to the number represented by the specified string.

◆ Parse() [2/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
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.

Parameters
valueThe string to convert.
providerA pointer to an object that contains the string format information.
Returns
The single-precision floating-point value equal to the number represented by the specified string.

◆ Parse() [3/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [4/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [5/9]

static float System::Single::Parse ( const String value,
std::nullptr_t   
)
inlinestatic

◆ Parse() [6/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider 
)
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.

Parameters
valueThe string to convert.
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number.
providerA pointer to an object that contains the string format information.
Returns
The single-precision floating-point value equal to the number represented by the specified string.

◆ Parse() [7/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [8/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [9/9]

static ASPOSECPP_SHARED_API float System::Single::Parse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ TryParse() [1/5]

static ASPOSECPP_SHARED_API bool System::Single::TryParse ( const String value,
float &  result 
)
static

Converts the specified string containing the string representation of a number to the equivalent single-precision floating-point value.

Parameters
valueThe string to convert.
resultThe reference to a single-precision floating-point variable where the result of the conversion is put.
Returns
True if the conversion succeeded, otherwise - false.

◆ TryParse() [2/5]

static ASPOSECPP_SHARED_API bool System::Single::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider,
float &  result 
)
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.

Parameters
valueThe string to convert.
stylesA bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number.
providerA pointer to an object that contains the string format information.
resultThe reference to a single-precision floating-point variable where the result of the conversion is put.
Returns
True if the conversion succeeded, otherwise - false.

◆ TryParse() [3/5]

static ASPOSECPP_SHARED_API bool System::Single::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture,
float &  result 
)
static

◆ TryParse() [4/5]

static ASPOSECPP_SHARED_API bool System::Single::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi,
float &  result 
)
static

◆ TryParse() [5/5]

static ASPOSECPP_SHARED_API bool System::Single::TryParse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  ,
float &  result 
)
static

Member Data Documentation

◆ Epsilon

ASPOSECPP_SHARED_API constexpr float System::Single::Epsilon = std::numeric_limits<float>::epsilon()
static

Smallest positive value that is greater than zero.

◆ MaxValue

ASPOSECPP_SHARED_API constexpr float System::Single::MaxValue = (std::numeric_limits<float>::max)()
static

Largest possible value.

◆ MinValue

ASPOSECPP_SHARED_API constexpr float System::Single::MinValue = std::numeric_limits<float>::lowest()
static

Smallest possible value.

◆ NaN

ASPOSECPP_SHARED_API constexpr float System::Single::NaN = std::numeric_limits<float>::quiet_NaN()
static

Value that is not a number.

◆ NegativeInfinity

ASPOSECPP_SHARED_API constexpr float System::Single::NegativeInfinity = -std::numeric_limits<float>::infinity()
static

Negative infinity.

◆ PositiveInfinity

ASPOSECPP_SHARED_API constexpr float System::Single::PositiveInfinity = std::numeric_limits<float>::infinity()
static

Positive infinity.