CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::Double Struct Reference

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

#include <double.h>

Static Public Member Functions

static double Parse (const String &value)
 Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value. More...
 
static double Parse (const String &value, const SharedPtr< IFormatProvider > &provider)
 Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value using the provided formatting information. More...
 
static double Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture)
 
static double Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static double Parse (const String &value, std::nullptr_t)
 
static double 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 double-precision floating-point value using the provided formatting information and number style. More...
 
static double Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture)
 
static double Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi)
 
static double Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
 
static bool TryParse (const String &value, double &result)
 Converts the specified string containing the string representation of a number to the equivalent double-precision floating-point value. More...
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider, double &result)
 Converts the specified string containing the string representation of a number to the equivalent double-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, double &result)
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, double &result)
 
static bool TryParse (const String &value, Globalization::NumberStyles styles, std::nullptr_t, double &result)
 

Static Public Attributes

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

Detailed Description

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

Member Function Documentation

◆ Parse() [1/9]

static double System::Double::Parse ( const String value)
static

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

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

◆ Parse() [2/9]

static double System::Double::Parse ( const String value,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [3/9]

static double System::Double::Parse ( const String value,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [4/9]

static double System::Double::Parse ( const String value,
const SharedPtr< IFormatProvider > &  provider 
)
static

Converts the specified string containing the string representation of a number to the equivalent double-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 double-precision floating-point value equal to the number represented by the specified string.

◆ Parse() [5/9]

static double System::Double::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::CultureInfo > &  culture 
)
static

◆ Parse() [6/9]

static double System::Double::Parse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< Globalization::NumberFormatInfo > &  nfi 
)
static

◆ Parse() [7/9]

static double System::Double::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 double-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 double-precision floating-point value equal to the number represented by the specified string.

◆ Parse() [8/9]

static double System::Double::Parse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  = nullptr 
)
static

◆ Parse() [9/9]

static double System::Double::Parse ( const String value,
std::nullptr_t   
)
inlinestatic

◆ TryParse() [1/5]

static bool System::Double::TryParse ( const String value,
double &  result 
)
static

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

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

◆ TryParse() [2/5]

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

◆ TryParse() [3/5]

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

◆ TryParse() [4/5]

static bool System::Double::TryParse ( const String value,
Globalization::NumberStyles  styles,
const SharedPtr< IFormatProvider > &  provider,
double &  result 
)
static

Converts the specified string containing the string representation of a number to the equivalent double-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 double-precision floating-point variable where the result of the conversion is put.
Returns
True if the conversion succeeded, otherwise - false.

◆ TryParse() [5/5]

static bool System::Double::TryParse ( const String value,
Globalization::NumberStyles  styles,
std::nullptr_t  ,
double &  result 
)
static

Member Data Documentation

◆ Epsilon

constexpr double System::Double::Epsilon = std::numeric_limits<double>::epsilon()
staticconstexpr

Smallest positive value that is greater than zero.

◆ MaxValue

constexpr double System::Double::MaxValue = (std::numeric_limits<double>::max)()
staticconstexpr

Largest possible value.

◆ MinValue

constexpr double System::Double::MinValue = std::numeric_limits<double>::lowest()
staticconstexpr

Smallest possible value.

◆ NaN

constexpr double System::Double::NaN = std::numeric_limits<double>::quiet_NaN()
staticconstexpr

Value that is not a number.

◆ NegativeInfinity

constexpr double System::Double::NegativeInfinity = -std::numeric_limits<double>::infinity()
staticconstexpr

Negative infinity.

◆ PositiveInfinity

constexpr double System::Double::PositiveInfinity = std::numeric_limits<double>::infinity()
staticconstexpr

Positive infinity.