The Methods and Fields Supported by Double : Float Point Number : Data Type C# Examples


C# Examples » Data Type » Float Point Number »

 

The Methods and Fields Supported by Double








Method
Meaning


public int CompareTo(object v)
Returns zero if the values are equal. Returns a negative value if the invoking object has a lower value. Returns a positive value if the invoking object has a greater value.


public override bool Equals(object v)
Returns true if the value of the invoking object equals the value of v.


public override int GetHashCode()
Returns the hash code.


public TypeCode GetTypeCode()
Returns the TypeCode enumeration value for Double, which is TypeCode.Double.


public static bool IsInfinity(double v)
Is v infinit (either positive or negative).


public static bool IsNaN(double v)
Is v is a number.


public static bool IsPositiveInfinity(double v)
Does v represent positive infinity.


public static bool IsNegativeInfinity(double v)
Returns true if v represents negative infinity. Otherwise, returns false.


public static double Parse(string str)
Parse the string.


public static doubleParse(string str,IFormatProvider fmtpvdr)
Parse the string using the culture-specific information provided by fmtpvdr.


public static doubleParse(string str, NumberStyles styles)
Parse the string using the style information provided by styles.


public static doubleParse(string str,NumberStyles styles,IFormatProvider fmtpvdr)
Returns the binary equivalent of the numeric string in str using the style information provided by styles and the culture-specific format information provided by fmtpvdr.


public override string ToString()
Convert value to string.


public string ToString(string format)
Convert value to string by the format.


public stringToString(IFormatProvider fmtpvdr)
Convert value to string by the culture-specific information specified in fmtpvdr.


public stringToString(string format,IFormatProvider fmtpvdr)
Convert value to string by the culture-specific information specified in fmtpvdr and the format specified by format.






Field
Meaning


public const double Epsilon
The smallest non-zero positive value.


public const double MaxValue
The largest value that a double can hold.


public const double MinValue
The smallest value that a double can hold.


public const double NaN
A value that is not a number.


public const double NegativeInfinity
A value representing negative infinity.


public const double PositiveInfinity
A value representing positive infinity.






HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Float Point Number