Skip to content
Reference > Classes

Double

Definition

Double var = .... ;

Extends

Extended By

None

Description

A number of type Double.

Method Summary

Owner Name Return Type Description
Double constructor(value) Object Initialize a 64 bit Double object.
Double byteValue() Byte Returns the value of this Double as a Byte after a narrowing primitive conversion.
Object getClassName() String Returns the string name of this object's class type.
Double isFinite() Boolean Returns "true" if this Double has a finite value; returns "false" otherwise (for NaN and infinity arguments).
Double isInfinite() Boolean Returns "true" if this Double is infinitely large in magnitude, "false" otherwise.
Double isNaN() Boolean Returns "true" if this Double instance is a Not-a-Number (NaN) value, "false" otherwise.
Object toJson() String Returns a string of a json representation of this object.

Method Definitions


constructor(value)

Double double = new Double(Double value)

Description

Initialize a 64 bit Double object.

Parameter Definition

Name Type Description
value Double  a double value

Example 1

1
2
3
Double d = 0.5d;

// d = 0.5

byteValue()

Byte Double::byteValue()

Description

Returns the value of this Double as a Byte after a narrowing primitive conversion.

Example 1

1
2
3
4
Double d = 0.5;
d.byteValue();

// d.byteValue() = 0

getClassName()

String Object::getClassName()

Description

Returns the string name of this object's class type.


isFinite()

Boolean Double::isFinite()

Description

Returns "true" if this Double has a finite value; returns "false" otherwise (for NaN and infinity arguments).

Example 1

1
2
3
4
Double d = 0.5;
d.isFinite();

// d.isFinite() = true

isInfinite()

Boolean Double::isInfinite()

Description

Returns "true" if this Double is infinitely large in magnitude, "false" otherwise.

Example 1

1
2
3
4
Double d = 0.5;
d.isInfinite();

// d.isInfinite() = false

isNaN()

Boolean Double::isNaN()

Description

Returns "true" if this Double instance is a Not-a-Number (NaN) value, "false" otherwise.

Example 1

1
2
3
4
Double d = power(-1,0.5d);
d.isNaN();

// d.isNaN() = true

toJson()

String Object::toJson()

Description

Returns a string of a json representation of this object.