shadow:standard

Class double

Parent class

shadow:standard@Object

Interfaces

shadow:standard@FloatingPoint<double>, shadow:standard@CanHash

immutable locked class double

Class double contains the methods that can be called on double values.

Constant Summary

Modifiers Type Name and Description
public immutable constant double PI

Closest double to the mathematical constant pi, the ratio of a circle's circumference to its diameter, approximately 3.141592653589793.

public immutable constant double E

Closest double to the mathematical constant e, the base of the natural logarithm, approximately 2.718281828459045.

public immutable constant double NaN

Constant representing one of the 64-bit not-a-number values supported by the IEEE 754 standard.

public immutable constant double INFINITY

Constant representing positive infinity with 64 bits in the IEEE 754 standard.

public immutable constant double NEGATIVE_INFINITY

Constant representing negative infinity with 64 bits in the IEEE 754 standard.

Create Summary

Modifiers Return Types Method and Description
public () create()

Destroy Summary

Modifiers Return Types Method and Description
public () destroy()

Method Summary

Modifiers Return Types Method and Description
public readonly locked (double) add(double other)
public readonly locked (double) ceiling()
public readonly locked (int) compare(double other)
public readonly (double) copy(AddressMap addresses)
public readonly locked (double) cos()
public readonly locked (double) divide(double other)
public readonly locked (boolean) equal(double other)
public readonly locked (double) floor()
public readonly locked (boolean) isFinite()

Checks to see if the current value represents an IEEE 754 value for a finite number.

public readonly locked (boolean) isInfinite()

Checks to see if the current value represents an IEEE 754 value for positive or negative infinity.

public readonly locked (boolean) isNaN()

Checks to see if the current value represents an IEEE 754 not-a-number value.

public readonly locked (double) logBase10()
public readonly locked (double) logBase2()
public readonly locked (double) logBaseE()
public readonly locked (double) modulus(double other)
public readonly locked (double) multiply(double other)
public readonly locked (double) negate()
public readonly locked (double) power(double value)
public readonly locked (double) power(int value)
public readonly locked (double) round()

Rounds the current double value to the nearest integer.

public readonly locked (double) sin()
public readonly locked (double) squareRoot()
public readonly locked (double) subtract(double other)
public readonly locked (double) tan()
public readonly locked (byte) toByte()
public readonly locked (code) toCode()
public readonly locked (double) toDouble()
public readonly locked (float) toFloat()
public readonly locked (int) toInt()
public readonly locked (long) toLong()
public readonly locked (short) toShort()
public readonly locked (String) toString()

Returns a String representation of the value, in base 10, with a maximum precision of 17 decimal digits, a threshold of 7 integer digits before scientific notation is used, and a threshold of 3 fractional digits without integer digits before scientific notation is used.

public readonly locked (String) toString(int maxPrecision, int integerThreshold, int fractionalThreshold)

Returns a String representation of the value, in base 10, with the specificed maximum precision of decimal digits, the specified threshold of integer digits before scientific notation is used, and the specified threshold of fractional digits without integer digits before scientific notation is used.

public readonly locked (ubyte) toUByte()
public readonly locked (uint) toUInt()
public readonly locked (ulong) toULong()
public readonly locked (ushort) toUShort()

Property Summary

Modifiers Return Types Method and Description
public readonly get locked (ulong) bits()

Retrieves the representation of 64-bits that makes up the current double value, as a ulong, except that all NaN values are treated as the same value.

public readonly get locked (ulong) hash()

Finds a hash value for the current value.

public readonly get locked (ulong) raw()

Constant Detail

PI

public immutable constant double PI

Closest double to the mathematical constant pi, the ratio of a circle's circumference to its diameter, approximately 3.141592653589793.

E

public immutable constant double E

Closest double to the mathematical constant e, the base of the natural logarithm, approximately 2.718281828459045.

NaN

public immutable constant double NaN

Constant representing one of the 64-bit not-a-number values supported by the IEEE 754 standard.

INFINITY

public immutable constant double INFINITY

Constant representing positive infinity with 64 bits in the IEEE 754 standard.

NEGATIVE_INFINITY

public immutable constant double NEGATIVE_INFINITY

Constant representing negative infinity with 64 bits in the IEEE 754 standard.

Create Detail

create

public create() => ()

Destroy Detail

destroy

public destroy() => ()

Method Detail

add

public readonly locked add(double other) => (double)

ceiling

public readonly locked ceiling() => (double)

compare

public readonly locked compare(double other) => (int)

copy

public readonly copy(AddressMap addresses) => (double)

cos

public readonly locked cos() => (double)

divide

public readonly locked divide(double other) => (double)

equal

public readonly locked equal(double other) => (boolean)

floor

public readonly locked floor() => (double)

isFinite

public readonly locked isFinite() => (boolean)

Checks to see if the current value represents an IEEE 754 value for a finite number.

Returns

true if the current value is finite

isInfinite

public readonly locked isInfinite() => (boolean)

Checks to see if the current value represents an IEEE 754 value for positive or negative infinity.

Returns

true if the current value is infinite

isNaN

public readonly locked isNaN() => (boolean)

Checks to see if the current value represents an IEEE 754 not-a-number value.

Returns

true if the current value is not a number

logBase10

public readonly locked logBase10() => (double)

logBase2

public readonly locked logBase2() => (double)

logBaseE

public readonly locked logBaseE() => (double)

modulus

public readonly locked modulus(double other) => (double)

multiply

public readonly locked multiply(double other) => (double)

negate

public readonly locked negate() => (double)

power

public readonly locked power(double value) => (double)

power

public readonly locked power(int value) => (double)

round

public readonly locked round() => (double)

Rounds the current double value to the nearest integer.

Returns

current value rounded to the nearest integer

sin

public readonly locked sin() => (double)

squareRoot

public readonly locked squareRoot() => (double)

subtract

public readonly locked subtract(double other) => (double)

tan

public readonly locked tan() => (double)

toByte

public readonly locked toByte() => (byte)

toCode

public readonly locked toCode() => (code)

toDouble

public readonly locked toDouble() => (double)

toFloat

public readonly locked toFloat() => (float)

toInt

public readonly locked toInt() => (int)

toLong

public readonly locked toLong() => (long)

toShort

public readonly locked toShort() => (short)

toString

public readonly locked toString() => (String)

Returns a String representation of the value, in base 10, with a maximum precision of 17 decimal digits, a threshold of 7 integer digits before scientific notation is used, and a threshold of 3 fractional digits without integer digits before scientific notation is used.

Returns

String representation

toString

public readonly locked toString(int maxPrecision, int integerThreshold, int fractionalThreshold) => (String)

Returns a String representation of the value, in base 10, with the specificed maximum precision of decimal digits, the specified threshold of integer digits before scientific notation is used, and the specified threshold of fractional digits without integer digits before scientific notation is used.

Returns

String representation

toUByte

public readonly locked toUByte() => (ubyte)

toUInt

public readonly locked toUInt() => (uint)

toULong

public readonly locked toULong() => (ulong)

toUShort

public readonly locked toUShort() => (ushort)

Property Detail

bits

public readonly get locked bits() => (ulong)

Retrieves the representation of 64-bits that makes up the current double value, as a ulong, except that all NaN values are treated as the same value.

Returns

bit representation of double value

hash

public readonly get locked hash() => (ulong)

Finds a hash value for the current value.

Returns

hash value

raw

public readonly get locked raw() => (ulong)