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.

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) abs()

Returns a non-negative version of the current value.

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) max(double other)

Finds the maximum of the current value and another double.

public readonly locked (double) min(double other)

Finds the minimum of the current value and another double.

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()

Create Detail

create

public create() => ()

Destroy Detail

destroy

public destroy() => ()

Method Detail

abs

public readonly locked abs() => (double)

Returns a non-negative version of the current value.

Returns

non-negative value

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)

max

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

Finds the maximum of the current value and another double.

Parameters

other - value

Returns

maximum value

min

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

Finds the minimum of the current value and another double.

Parameters

other - value

Returns

minimum value

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)