shadow:standard@Integer<long>, shadow:standard@Number<double>, shadow:standard@CanNegate<long>, shadow:standard@CanHash

`immutable locked class long`

Class `long`

contains the methods that can be called on `long`

values.

Modifiers | Type | Name and Description |
---|---|---|

`public immutable constant` |
`long` |
`MAX` Largest value a |

`public immutable constant` |
`long` |
`MIN` Smallest value a |

Modifiers | Return Types | Method and Description |
---|---|---|

`public` |
`()` |
`create()` |

Modifiers | Return Types | Method and Description |
---|---|---|

`public` |
`()` |
`destroy()` |

Modifiers | Return Types | Method and Description |
---|---|---|

`public readonly locked` |
`(ulong)` |
`abs()` Returns a non-negative version of the current value. |

`public readonly locked` |
`(double)` |
`add(double other)` Adds a |

`public readonly locked` |
`(long)` |
`add(long other)` |

`public readonly locked` |
`(long)` |
`bitAnd(long other)` |

`public readonly locked` |
`(long)` |
`bitComplement()` |

`public readonly locked` |
`(long)` |
`bitOr(long other)` |

`public readonly locked` |
`(long)` |
`bitRotateLeft(int amount)` Finds the result of left-rotating the bits of the |

`public readonly locked` |
`(long)` |
`bitRotateLeft(uint amount)` |

`public readonly locked` |
`(long)` |
`bitRotateRight(int amount)` Finds the result of right-rotating the bits of the |

`public readonly locked` |
`(long)` |
`bitRotateRight(uint amount)` |

`public readonly locked` |
`(long)` |
`bitShiftLeft(int amount)` Finds the result of left-shifting the bits of the |

`public readonly locked` |
`(long)` |
`bitShiftLeft(uint amount)` |

`public readonly locked` |
`(long)` |
`bitShiftRight(int amount)` Finds the result of right-shifting the bits of the |

`public readonly locked` |
`(long)` |
`bitShiftRight(uint amount)` |

`public readonly locked` |
`(long)` |
`bitXor(long other)` |

`public readonly locked` |
`(int)` |
`compare(double other)` Compares the current value to a |

`public readonly locked` |
`(int)` |
`compare(long other)` |

`public readonly` |
`(long)` |
`copy(AddressMap addresses)` |

`public readonly locked` |
`(double)` |
`cos()` Finds the cosine of the current value. |

`public readonly locked` |
`(double)` |
`divide(double other)` Divides the current value by a |

`public readonly locked` |
`(long)` |
`divide(long other)` |

`public readonly locked` |
`(boolean)` |
`equal(double other)` Compares the current value to a |

`public readonly locked` |
`(boolean)` |
`equal(long other)` |

`public readonly locked` |
`(long)` |
`flipEndian()` |

`public readonly locked` |
`(long)` |
`leadingZeroes()` |

`public readonly locked` |
`(double)` |
`logBase10()` Finds the logarithm base 10 of the current value. |

`public readonly locked` |
`(double)` |
`logBase2()` Finds the logarithm base 2 of the current value. |

`public readonly locked` |
`(double)` |
`logBaseE()` Finds the natural logarithm of the current value. |

`public readonly locked` |
`(long)` |
`max(long other)` Finds the maximum of the current value and another |

`public readonly locked` |
`(long)` |
`min(long other)` Finds the minimum of the current value and another |

`public readonly locked` |
`(double)` |
`modulus(double other)` Divides the current value by a |

`public readonly locked` |
`(long)` |
`modulus(long other)` |

`public readonly locked` |
`(double)` |
`multiply(double other)` Multiplies the current value by a |

`public readonly locked` |
`(long)` |
`multiply(long other)` |

`public readonly locked` |
`(long)` |
`negate()` |

`public readonly locked` |
`(long)` |
`ones()` |

`public readonly locked` |
`(double)` |
`power(double value)` Raises the current value to the power of a |

`public readonly locked` |
`(double)` |
`power(int value)` Raises the current value to the power of an |

`public readonly locked` |
`(double)` |
`sin()` Finds the sine of the current value. |

`public readonly locked` |
`(double)` |
`squareRoot()` Finds the square root of the value. |

`public readonly locked` |
`(double)` |
`subtract(double other)` Subtracts a |

`public readonly locked` |
`(long)` |
`subtract(long other)` |

`public readonly locked` |
`(double)` |
`tan()` Finds the tangent of the current value. |

`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 |

`public readonly locked` |
`(String)` |
`toString(uint base)` Returns a |

`public readonly locked` |
`(ubyte)` |
`toUByte()` |

`public readonly locked` |
`(uint)` |
`toUInt()` |

`public readonly locked` |
`(ulong)` |
`toULong()` |

`public readonly locked` |
`(ushort)` |
`toUShort()` |

`public readonly locked` |
`(ulong)` |
`toUnsigned()` Returns an unsigned version of the current value, underflowing if negative. |

`public readonly locked` |
`(long)` |
`trailingZeroes()` |

Modifiers | Return Types | Method and Description |
---|---|---|

`public readonly get locked` |
`(ulong)` |
`hash()` Finds a hash value for the current value. |

`public create() => ()`

`public destroy() => ()`

`public readonly locked abs() => (ulong)`

Returns a non-negative version of the current value.

non-negative value

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

Adds a `double`

to the current value and returns the resulting value.

`other`

- value to add

sum of the two values

`public readonly locked bitComplement() => (long)`

`public readonly locked bitRotateLeft(int amount) => (long)`

Finds the result of left-rotating the bits of the `long`

value by a signed amount which may be positive, negative, or zero.

`amount`

- bits to rotate

rotated value

`public readonly locked bitRotateRight(int amount) => (long)`

Finds the result of right-rotating the bits of the `long`

value by a signed amount which may be positive, negative, or zero.

`amount`

- bits to rotate

rotated value

`public readonly locked bitShiftLeft(int amount) => (long)`

Finds the result of left-shifting the bits of the `long`

value by a signed amount which may be positive, negative, or zero.

`amount`

- bits to shift

shifted value

`public readonly locked bitShiftRight(int amount) => (long)`

Finds the result of right-shifting the bits of the `long`

value by a signed amount which may be positive, negative, or zero.

`amount`

- bits to shift

shifted value

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

Compares the current value to a `double`

, returning `-1`

, `0`

, or `1`

, if the current value is smaller than, equal to, or larger than the other value, respectively.

`other`

- value to compare to

whether smaller, equal, or larger

`public readonly copy(AddressMap addresses) => (long)`

`public readonly locked cos() => (double)`

Finds the cosine of the current value.

cosine of the value

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

Divides the current value by a `double`

and returns the quotient.

`other`

- value to divide by

quotient of the division

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

Compares the current value to a `double`

, returning `true`

if they represent the same number.

`other`

- value to compare to

`true`

if identical

`public readonly locked flipEndian() => (long)`

`public readonly locked leadingZeroes() => (long)`

`public readonly locked logBase10() => (double)`

Finds the logarithm base 10 of the current value.

logarithm base 10 of the value

`public readonly locked logBase2() => (double)`

Finds the logarithm base 2 of the current value.

logarithm base 2 of the value

`public readonly locked logBaseE() => (double)`

Finds the natural logarithm of the current value.

natural logarithm of the value

`public readonly locked max(long other) => (long)`

Finds the maximum of the current value and another `long`

.

`other`

- value

maximum value

`public readonly locked min(long other) => (long)`

Finds the minimum of the current value and another `long`

.

`other`

- value

minimum value

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

Divides the current value by a `double`

and returns the remainder.

`other`

- value to divide by

remainder of the division

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

Multiplies the current value by a `double`

and returns the resulting value.

`other`

- value to multiply by

product of the two values

`public readonly locked negate() => (long)`

`public readonly locked ones() => (long)`

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

Raises the current value to the power of a `double`

.

`exponent`

- power to raise by

number after exponentiation

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

Raises the current value to the power of an `int`

.

`exponent`

- power to raise by

number after exponentiation

`public readonly locked sin() => (double)`

Finds the sine of the current value.

sine of the value

`public readonly locked squareRoot() => (double)`

Finds the square root of the value.

square root

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

Subtracts a `double`

from the current value and returns the resulting value.

`other`

- value to subtract

difference of the two values

`public readonly locked tan() => (double)`

Finds the tangent of the current value.

tangent of the value

`public readonly locked toByte() => (byte)`

`public readonly locked toCode() => (code)`

`public readonly locked toDouble() => (double)`

`public readonly locked toFloat() => (float)`

`public readonly locked toInt() => (int)`

`public readonly locked toLong() => (long)`

`public readonly locked toShort() => (short)`

`public readonly locked toString() => (String)`

Returns a `String`

representation of the value, in base 10.

`String`

representation

`public readonly locked toString(uint base) => (String)`

Returns a `String`

representation of the value, in the specified base.

`base`

- base of output representation

`String`

representation

`public readonly locked toUByte() => (ubyte)`

`public readonly locked toUInt() => (uint)`

`public readonly locked toULong() => (ulong)`

`public readonly locked toUShort() => (ushort)`

`public readonly locked toUnsigned() => (ulong)`

Returns an unsigned version of the current value, underflowing if negative.

unsigned value

`public readonly locked trailingZeroes() => (long)`

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

Finds a hash value for the current value.

hash value