shadow:standard

Class ulong

Parent class

shadow:standard@Object

Interfaces

shadow:standard@Integer<ulong>, shadow:standard@Number<double>, shadow:standard@CanHash

immutable locked class ulong

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

Constant Summary

Modifiers Type Name and Description
public immutable constant ulong MAX

Largest value a ulong can have, 18446744073709551615.

public immutable constant ulong MIN

Smallest value a ulong can have, 0.

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)

Adds a double to the current value and returns the resulting value.

public readonly locked (ulong) add(ulong other)
public readonly locked (ulong) bitAnd(ulong other)
public readonly locked (ulong) bitComplement()
public readonly locked (ulong) bitOr(ulong other)
public readonly locked (ulong) bitRotateLeft(int amount)

Finds the result of left-rotating the bits of the ulong value by a signed amount which may be positive, negative, or zero.

public readonly locked (ulong) bitRotateLeft(uint amount)
public readonly locked (ulong) bitRotateRight(int amount)

Finds the result of right-rotating the bits of the ulong value by a signed amount which may be positive, negative, or zero.

public readonly locked (ulong) bitRotateRight(uint amount)
public readonly locked (ulong) bitShiftLeft(int amount)

Finds the result of left-shifting the bits of the ulong value by a signed amount which may be positive, negative, or zero.

public readonly locked (ulong) bitShiftLeft(uint amount)
public readonly locked (ulong) bitShiftRight(int amount)

Finds the result of right-shifting the bits of the ulong value by a signed amount which may be positive, negative, or zero.

public readonly locked (ulong) bitShiftRight(uint amount)
public readonly locked (ulong) bitXor(ulong other)
public readonly locked (int) compare(double other)

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.

public readonly locked (int) compare(ulong other)
public readonly (ulong) 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 double and returns the quotient.

public readonly locked (ulong) divide(ulong other)
public readonly locked (boolean) equal(double other)

Compares the current value to a double, returning true if they represent the same number.

public readonly locked (boolean) equal(ulong other)
public readonly locked (ulong) flipEndian()
public readonly locked (ulong) 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 (ulong) max(ulong other)

Finds the maximum of the current value and another ulong.

public readonly locked (ulong) min(ulong other)

Finds the minimum of the current value and another ulong.

public readonly locked (double) modulus(double other)

Divides the current value by a double and returns the remainder.

public readonly locked (ulong) modulus(ulong other)
public readonly locked (double) multiply(double other)

Multiplies the current value by a double and returns the resulting value.

public readonly locked (ulong) multiply(ulong other)
public readonly locked (ulong) ones()
public readonly locked (double) power(double value)

Raises the current value to the power of a double.

public readonly locked (double) power(int value)

Raises the current value to the power of an int.

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 double from the current value and returns the resulting value.

public readonly locked (ulong) subtract(ulong 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 (long) toSigned()

Returns a signed version of the current value, overflowing if too large.

public readonly locked (String) toString()

Returns a String representation of the value, in base 10.

public readonly locked (String) toString(uint base)

Returns a String representation of the value, in the specified base.

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

Property Summary

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

Finds a hash value for the current value.

Constant Detail

MAX

public immutable constant ulong MAX

Largest value a ulong can have, 18446744073709551615.

MIN

public immutable constant ulong MIN

Smallest value a ulong can have, 0.

Create Detail

create

public create() => ()

Destroy Detail

destroy

public destroy() => ()

Method Detail

add

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

Adds a double to the current value and returns the resulting value.

Parameters

other - value to add

Returns

sum of the two values

add

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

bitAnd

public readonly locked bitAnd(ulong other) => (ulong)

bitComplement

public readonly locked bitComplement() => (ulong)

bitOr

public readonly locked bitOr(ulong other) => (ulong)

bitRotateLeft

public readonly locked bitRotateLeft(int amount) => (ulong)

Finds the result of left-rotating the bits of the ulong value by a signed amount which may be positive, negative, or zero.

Parameters

amount - bits to rotate

Returns

rotated value

bitRotateLeft

public readonly locked bitRotateLeft(uint amount) => (ulong)

bitRotateRight

public readonly locked bitRotateRight(int amount) => (ulong)

Finds the result of right-rotating the bits of the ulong value by a signed amount which may be positive, negative, or zero.

Parameters

amount - bits to rotate

Returns

rotated value

bitRotateRight

public readonly locked bitRotateRight(uint amount) => (ulong)

bitShiftLeft

public readonly locked bitShiftLeft(int amount) => (ulong)

Finds the result of left-shifting the bits of the ulong value by a signed amount which may be positive, negative, or zero.

Parameters

amount - bits to shift

Returns

shifted value

bitShiftLeft

public readonly locked bitShiftLeft(uint amount) => (ulong)

bitShiftRight

public readonly locked bitShiftRight(int amount) => (ulong)

Finds the result of right-shifting the bits of the ulong value by a signed amount which may be positive, negative, or zero.

Parameters

amount - bits to shift

Returns

shifted value

bitShiftRight

public readonly locked bitShiftRight(uint amount) => (ulong)

bitXor

public readonly locked bitXor(ulong other) => (ulong)

compare

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.

Parameters

other - value to compare to

Returns

whether smaller, equal, or larger

compare

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

copy

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

cos

public readonly locked cos() => (double)

Finds the cosine of the current value.

Returns

cosine of the value

divide

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

Divides the current value by a double and returns the quotient.

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

equal

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

Compares the current value to a double, returning true if they represent the same number.

Parameters

other - value to compare to

Returns

true if identical

equal

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

flipEndian

public readonly locked flipEndian() => (ulong)

leadingZeroes

public readonly locked leadingZeroes() => (ulong)

logBase10

public readonly locked logBase10() => (double)

Finds the logarithm base 10 of the current value.

Returns

logarithm base 10 of the value

logBase2

public readonly locked logBase2() => (double)

Finds the logarithm base 2 of the current value.

Returns

logarithm base 2 of the value

logBaseE

public readonly locked logBaseE() => (double)

Finds the natural logarithm of the current value.

Returns

natural logarithm of the value

max

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

Finds the maximum of the current value and another ulong.

Parameters

other - value

Returns

maximum value

min

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

Finds the minimum of the current value and another ulong.

Parameters

other - value

Returns

minimum value

modulus

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

Divides the current value by a double and returns the remainder.

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

multiply

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

Multiplies the current value by a double and returns the resulting value.

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

ones

public readonly locked ones() => (ulong)

power

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

Raises the current value to the power of a double.

Parameters

exponent - power to raise by

Returns

number after exponentiation

power

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

Raises the current value to the power of an int.

Parameters

exponent - power to raise by

Returns

number after exponentiation

sin

public readonly locked sin() => (double)

Finds the sine of the current value.

Returns

sine of the value

squareRoot

public readonly locked squareRoot() => (double)

Finds the square root of the value.

Returns

square root

subtract

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

Subtracts a double from the current value and returns the resulting value.

Parameters

other - value to subtract

Returns

difference of the two values

subtract

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

tan

public readonly locked tan() => (double)

Finds the tangent of the current value.

Returns

tangent of the value

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)

toSigned

public readonly locked toSigned() => (long)

Returns a signed version of the current value, overflowing if too large.

Returns

signed value

toString

public readonly locked toString() => (String)

Returns a String representation of the value, in base 10.

Returns

String representation

toString

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

Returns a String representation of the value, in the specified base.

Parameters

base - base of output representation

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)

trailingZeroes

public readonly locked trailingZeroes() => (ulong)

Property Detail

hash

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

Finds a hash value for the current value.

Returns

hash value