2011-11-07 01:29:50 +00:00
|
|
|
#ifndef _SYSTEM_DOUBLE_
|
|
|
|
#define _SYSTEM_DOUBLE_
|
|
|
|
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
#include <System/Object.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
// Represents a double precision floating point value.
|
2012-09-28 20:36:02 +00:00
|
|
|
struct Double : IComparable<Double>, IEquatable<Double>, Object
|
2011-11-07 01:29:50 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
double value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const double Epsilon;
|
|
|
|
static const double MaxValue;
|
|
|
|
static const double MinValue;
|
|
|
|
static const double NaN;
|
|
|
|
static const double NegativeInfinity;
|
|
|
|
static const double PositiveInfinity;
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
Double(const double &obj);
|
|
|
|
Double(const Double &obj);
|
2011-11-07 01:29:50 +00:00
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
int CompareTo(const Double other) const;
|
|
|
|
bool Equals(const Double other) const;
|
|
|
|
int GetHashCode() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
int GetType() const;
|
2011-11-07 01:29:50 +00:00
|
|
|
static double Parse(char* str);
|
2012-03-29 22:02:43 +00:00
|
|
|
const char* ToString() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
static const char* ToString(const double value);
|
2011-11-07 01:29:50 +00:00
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
bool operator !=(const Double right) const;
|
|
|
|
bool operator ==(const Double right) const;
|
2011-11-07 01:29:50 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_DOUBLE_
|