Double

Overview

Double precision floating point type.

Location

Implements

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Double()

 

init()

 

Double()

CompareTo (Double): Int32

Compares this value to another value; returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Double): Int32

 

Int32 CompareTo(Double a)

 

func CompareTo(_ a: Double) -> Int32

 

Int32 CompareTo(Double a)

Parameters:

  • a:

CompareTo (Object): Int32

Compares this value to another value; returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

Equals (Double): Boolean

Compares this value to another value; returns true if equal.

 

method Equals(other: Double): Boolean

 

Boolean Equals(Double other)

 

func Equals(_ other: Double) -> Boolean

 

Boolean Equals(Double other)

Parameters:

  • other:

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IsInfinity

Returns true if the value is positive or negative infinity.

 

class method IsInfinity(Value: Double): Boolean

 

static Boolean IsInfinity(Double Value)

 

static func IsInfinity(_ Value: Double) -> Boolean

 

static Boolean IsInfinity(Double Value)

Parameters:

  • Value:

IsNaN

Returns true if the value is NaN.

 

class method IsNaN(Value: Double): Boolean

 

static Boolean IsNaN(Double Value)

 

static func IsNaN(_ Value: Double) -> Boolean

 

static Boolean IsNaN(Double Value)

Parameters:

  • Value:

IsNegativeInfinity

Returns true if the value is negative infinity.

 

class method IsNegativeInfinity(Value: Double): Boolean

 

static Boolean IsNegativeInfinity(Double Value)

 

static func IsNegativeInfinity(_ Value: Double) -> Boolean

 

static Boolean IsNegativeInfinity(Double Value)

Parameters:

  • Value:

IsPositiveInfinity

Returns true if the value is positive infinity.

 

class method IsPositiveInfinity(Value: Double): Boolean

 

static Boolean IsPositiveInfinity(Double Value)

 

static func IsPositiveInfinity(_ Value: Double) -> Boolean

 

static Boolean IsPositiveInfinity(Double Value)

Parameters:

  • Value:

MaxValue

contain the max value this type can hold.

 

class method MaxValue: Double

 

static Double MaxValue()

 

static func MaxValue() -> Double

 

static Double MaxValue()

MinValue

contain the minimum value this type can hold.

 

class method MinValue: Double

 

static Double MinValue()

 

static func MinValue() -> Double

 

static Double MinValue()

NaN

contain the NaN value.

 

class method NaN: Double

 

static Double NaN()

 

static func NaN() -> Double

 

static Double NaN()

NegativeInfinity

Contains negative infinity.

 

class method NegativeInfinity: Double

 

static Double NegativeInfinity()

 

static func NegativeInfinity() -> Double

 

static Double NegativeInfinity()

Parse (String): Double

Parses a string to a double.

 

class method Parse(s: String): Double

 

static Double Parse(String s)

 

static func Parse(_ s: String) -> Double

 

static Double Parse(String s)

Parameters:

  • s:

Parse (String, Locale): Double

Parses a string to a double in a given locale.

 

class method Parse(s: String; aLocale: Locale): Double

 

static Double Parse(String s, Locale aLocale)

 

static func Parse(_ s: String, _ aLocale: Locale) -> Double

 

static Double Parse(String s, Locale aLocale)

Parameters:

  • s:
  • aLocale:

PositiveInfinity

Contains positive infinity.

 

class method PositiveInfinity: Double

 

static Double PositiveInfinity()

 

static func PositiveInfinity() -> Double

 

static Double PositiveInfinity()

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

ToString  override virtual

Converts a double to a string.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToString (Locale): String

Converts a double to a string in a given locale.

 

method ToString(aLocale: Locale): String

 

String ToString(Locale aLocale)

 

func ToString(_ aLocale: Locale) -> String

 

String ToString(Locale aLocale)

Parameters:

  • aLocale:

ToString (UInt32): String

Converts a double to a string with a given number of digits.

 

method ToString(aNumberOfDecimalDigits: UInt32): String

 

String ToString(UInt32 aNumberOfDecimalDigits)

 

func ToString(_ aNumberOfDecimalDigits: UInt32) -> String

 

String ToString(UInt32 aNumberOfDecimalDigits)

Parameters:

  • aNumberOfDecimalDigits:

ToString (UInt32, Locale): String

Converts a double to a string in a given locale with a given number of digits.

 

method ToString(aNumberOfDecimalDigits: UInt32; aLocale: Locale): String

 

String ToString(UInt32 aNumberOfDecimalDigits, Locale aLocale)

 

func ToString(_ aNumberOfDecimalDigits: UInt32, _ aLocale: Locale) -> String

 

String ToString(UInt32 aNumberOfDecimalDigits, Locale aLocale)

Parameters:

  • aNumberOfDecimalDigits:
  • aLocale:

TryParse (String, Double): Boolean

Try to parse a double, returns true if succesful.

 

class method TryParse(s: String; out Value: Double): Boolean

 

static Boolean TryParse(String s, out Double Value)

 

static func TryParse(_ s: String, _ Value: Double) -> Boolean

 

static Boolean TryParse(String s, __out Double Value)

Parameters:

  • s:
  • Value:

TryParse (String, Locale, Double): Boolean

Try to parse a double, returns true if succesful.

 

class method TryParse(s: String; aLocale: Locale; out Value: Double): Boolean

 

static Boolean TryParse(String s, Locale aLocale, out Double Value)

 

static func TryParse(_ s: String, _ aLocale: Locale, _ Value: Double) -> Boolean

 

static Boolean TryParse(String s, Locale aLocale, __out Double Value)

Parameters:

  • s:
  • aLocale:
  • Value:

 

IsInfinity

Returns true if the value is positive or negative infinity.

 

class method IsInfinity(Value: Double): Boolean

 

static Boolean IsInfinity(Double Value)

 

static func IsInfinity(_ Value: Double) -> Boolean

 

static Boolean IsInfinity(Double Value)

Parameters:

  • Value:

IsNaN

Returns true if the value is NaN.

 

class method IsNaN(Value: Double): Boolean

 

static Boolean IsNaN(Double Value)

 

static func IsNaN(_ Value: Double) -> Boolean

 

static Boolean IsNaN(Double Value)

Parameters:

  • Value:

IsNegativeInfinity

Returns true if the value is negative infinity.

 

class method IsNegativeInfinity(Value: Double): Boolean

 

static Boolean IsNegativeInfinity(Double Value)

 

static func IsNegativeInfinity(_ Value: Double) -> Boolean

 

static Boolean IsNegativeInfinity(Double Value)

Parameters:

  • Value:

IsPositiveInfinity

Returns true if the value is positive infinity.

 

class method IsPositiveInfinity(Value: Double): Boolean

 

static Boolean IsPositiveInfinity(Double Value)

 

static func IsPositiveInfinity(_ Value: Double) -> Boolean

 

static Boolean IsPositiveInfinity(Double Value)

Parameters:

  • Value:

MaxValue

contain the max value this type can hold.

 

class method MaxValue: Double

 

static Double MaxValue()

 

static func MaxValue() -> Double

 

static Double MaxValue()

MinValue

contain the minimum value this type can hold.

 

class method MinValue: Double

 

static Double MinValue()

 

static func MinValue() -> Double

 

static Double MinValue()

NaN

contain the NaN value.

 

class method NaN: Double

 

static Double NaN()

 

static func NaN() -> Double

 

static Double NaN()

NegativeInfinity

Contains negative infinity.

 

class method NegativeInfinity: Double

 

static Double NegativeInfinity()

 

static func NegativeInfinity() -> Double

 

static Double NegativeInfinity()

Parse (String): Double

Parses a string to a double.

 

class method Parse(s: String): Double

 

static Double Parse(String s)

 

static func Parse(_ s: String) -> Double

 

static Double Parse(String s)

Parameters:

  • s:

Parse (String, Locale): Double

Parses a string to a double in a given locale.

 

class method Parse(s: String; aLocale: Locale): Double

 

static Double Parse(String s, Locale aLocale)

 

static func Parse(_ s: String, _ aLocale: Locale) -> Double

 

static Double Parse(String s, Locale aLocale)

Parameters:

  • s:
  • aLocale:

PositiveInfinity

Contains positive infinity.

 

class method PositiveInfinity: Double

 

static Double PositiveInfinity()

 

static func PositiveInfinity() -> Double

 

static Double PositiveInfinity()

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

TryParse (String, Double): Boolean

Try to parse a double, returns true if succesful.

 

class method TryParse(s: String; out Value: Double): Boolean

 

static Boolean TryParse(String s, out Double Value)

 

static func TryParse(_ s: String, _ Value: Double) -> Boolean

 

static Boolean TryParse(String s, __out Double Value)

Parameters:

  • s:
  • Value:

TryParse (String, Locale, Double): Boolean

Try to parse a double, returns true if succesful.

 

class method TryParse(s: String; aLocale: Locale; out Value: Double): Boolean

 

static Boolean TryParse(String s, Locale aLocale, out Double Value)

 

static func TryParse(_ s: String, _ aLocale: Locale, _ Value: Double) -> Boolean

 

static Boolean TryParse(String s, Locale aLocale, __out Double Value)

Parameters:

  • s:
  • aLocale:
  • Value:

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Double()

 

init()

 

Double()

CompareTo (Double): Int32

Compares this value to another value; returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Double): Int32

 

Int32 CompareTo(Double a)

 

func CompareTo(_ a: Double) -> Int32

 

Int32 CompareTo(Double a)

Parameters:

  • a:

CompareTo (Object): Int32

Compares this value to another value; returns 0 if equal, -1 if less, 1 if more.

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

Parameters:

  • a:

Equals (Double): Boolean

Compares this value to another value; returns true if equal.

 

method Equals(other: Double): Boolean

 

Boolean Equals(Double other)

 

func Equals(_ other: Double) -> Boolean

 

Boolean Equals(Double other)

Parameters:

  • other:

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  override virtual

Converts a double to a string.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

ToString (Locale): String

Converts a double to a string in a given locale.

 

method ToString(aLocale: Locale): String

 

String ToString(Locale aLocale)

 

func ToString(_ aLocale: Locale) -> String

 

String ToString(Locale aLocale)

Parameters:

  • aLocale:

ToString (UInt32): String

Converts a double to a string with a given number of digits.

 

method ToString(aNumberOfDecimalDigits: UInt32): String

 

String ToString(UInt32 aNumberOfDecimalDigits)

 

func ToString(_ aNumberOfDecimalDigits: UInt32) -> String

 

String ToString(UInt32 aNumberOfDecimalDigits)

Parameters:

  • aNumberOfDecimalDigits:

ToString (UInt32, Locale): String

Converts a double to a string in a given locale with a given number of digits.

 

method ToString(aNumberOfDecimalDigits: UInt32; aLocale: Locale): String

 

String ToString(UInt32 aNumberOfDecimalDigits, Locale aLocale)

 

func ToString(_ aNumberOfDecimalDigits: UInt32, _ aLocale: Locale) -> String

 

String ToString(UInt32 aNumberOfDecimalDigits, Locale aLocale)

Parameters:

  • aNumberOfDecimalDigits:
  • aLocale: