shadow:standard

Class ubyte

Parent class

shadow:standard@Object

Interfaces

shadow:standard@Integer<ubyte>, shadow:standard@Integer<short>, shadow:standard@Integer<ushort>, shadow:standard@Integer<int>, shadow:standard@Integer<uint>, shadow:standard@Integer<long>, shadow:standard@Integer<ulong>, shadow:standard@Number<float>, shadow:standard@Number<double>, shadow:standard@CanHash

immutable locked class ubyte

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

Constant Summary

Modifiers Type Name and Description
public immutable constant ubyte MAX

Largest value a ubyte can have, 255.

public immutable constant ubyte MIN

Smallest value a ubyte 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 (float) add(float other)

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

public readonly locked (int) add(int other)

Adds an int to the current value and returns the resulting value.

public readonly locked (long) add(long other)

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

public readonly locked (short) add(short other)

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

public readonly locked (ubyte) add(ubyte other)
public readonly locked (uint) add(uint other)

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

public readonly locked (ulong) add(ulong other)

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

public readonly locked (ushort) add(ushort other)

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

public readonly locked (int) bitAnd(int other)

Computes the bitwise AND of the value and an int value.

public readonly locked (long) bitAnd(long other)

Computes the bitwise AND of the value and a long value.

public readonly locked (short) bitAnd(short other)

Computes the bitwise AND of the value and a short value.

public readonly locked (ubyte) bitAnd(ubyte other)
public readonly locked (uint) bitAnd(uint other)

Computes the bitwise AND of the value and a uint value.

public readonly locked (ulong) bitAnd(ulong other)

Computes the bitwise AND of the value and a ulong value.

public readonly locked (ushort) bitAnd(ushort other)

Computes the bitwise AND of the value and a ushort value.

public readonly locked (ubyte) bitComplement()
public readonly locked (int) bitOr(int other)

Computes the bitwise OR of the value and an int value.

public readonly locked (long) bitOr(long other)

Computes the bitwise OR of the value and a long value.

public readonly locked (short) bitOr(short other)

Computes the bitwise OR of the value and a short value.

public readonly locked (ubyte) bitOr(ubyte other)
public readonly locked (uint) bitOr(uint other)

Computes the bitwise OR of the value and a uint value.

public readonly locked (ulong) bitOr(ulong other)

Computes the bitwise OR of the value and a ulong value.

public readonly locked (ushort) bitOr(ushort other)

Computes the bitwise OR of the value and a ushort value.

public readonly locked (ubyte) bitRotateLeft(int amount)

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

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

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

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

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

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

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

public readonly locked (ubyte) bitShiftRight(uint amount)
public readonly locked (int) bitXor(int other)

Computes the bitwise XOR of the value and an int value.

public readonly locked (long) bitXor(long other)

Computes the bitwise XOR of the value and a long value.

public readonly locked (short) bitXor(short other)

Computes the bitwise XOR of the value and a short value.

public readonly locked (ubyte) bitXor(ubyte other)
public readonly locked (uint) bitXor(uint other)

Computes the bitwise XOR of the value and a uint value.

public readonly locked (ulong) bitXor(ulong other)

Computes the bitwise XOR of the value and a ulong value.

public readonly locked (ushort) bitXor(ushort other)

Computes the bitwise XOR of the value and a ushort value.

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

Compares the current value to a float, 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(int other)

Compares the current value to an int, 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(long other)

Compares the current value to a long, 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(short other)

Compares the current value to a short, 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(ubyte other)
public readonly locked (int) compare(uint other)

Compares the current value to a uint, 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)

Compares the current value to a ulong, 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(ushort other)

Compares the current value to a ushort, returning -1, 0, or 1, if the current value is smaller than, equal to, or larger than the other value, respectively.

public readonly (ubyte) 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 (float) divide(float other)

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

public readonly locked (int) divide(int other)

Divides the current value by an int and returns the quotient.

public readonly locked (long) divide(long other)

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

public readonly locked (short) divide(short other)

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

public readonly locked (ubyte) divide(ubyte other)
public readonly locked (uint) divide(uint other)

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

public readonly locked (ulong) divide(ulong other)

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

public readonly locked (ushort) divide(ushort other)

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

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

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

public readonly locked (boolean) equal(int other)

Compares the current value to an int, returning true if they represent the same number.

public readonly locked (boolean) equal(long other)

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

public readonly locked (boolean) equal(short other)

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

public readonly locked (boolean) equal(ubyte other)
public readonly locked (boolean) equal(uint other)

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

public readonly locked (boolean) equal(ulong other)

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

public readonly locked (boolean) equal(ushort other)

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

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

Finds the maximum of the current value and another ubyte.

public readonly locked (ubyte) min(ubyte other)

Finds the minimum of the current value and another ubyte.

public readonly locked (double) modulus(double other)

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

public readonly locked (float) modulus(float other)

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

public readonly locked (int) modulus(int other)

Divides the current value by an int and returns the remainder.

public readonly locked (long) modulus(long other)

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

public readonly locked (short) modulus(short other)

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

public readonly locked (ubyte) modulus(ubyte other)
public readonly locked (uint) modulus(uint other)

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

public readonly locked (ulong) modulus(ulong other)

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

public readonly locked (ushort) modulus(ushort other)

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

public readonly locked (double) multiply(double other)

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

public readonly locked (float) multiply(float other)

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

public readonly locked (int) multiply(int other)

Multiplies the current value by an int and returns the resulting value.

public readonly locked (long) multiply(long other)

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

public readonly locked (short) multiply(short other)

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

public readonly locked (ubyte) multiply(ubyte other)
public readonly locked (uint) multiply(uint other)

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

public readonly locked (ulong) multiply(ulong other)

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

public readonly locked (ushort) multiply(ushort other)

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

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 (float) subtract(float other)

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

public readonly locked (int) subtract(int other)

Subtracts an int from the current value and returns the resulting value.

public readonly locked (long) subtract(long other)

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

public readonly locked (short) subtract(short other)

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

public readonly locked (ubyte) subtract(ubyte other)
public readonly locked (uint) subtract(uint other)

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

public readonly locked (ulong) subtract(ulong other)

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

public readonly locked (ushort) subtract(ushort other)

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

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

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 ubyte MAX

Largest value a ubyte can have, 255.

MIN

public immutable constant ubyte MIN

Smallest value a ubyte 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(float other) => (float)

Adds a float 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(int other) => (int)

Adds an int 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(long other) => (long)

Adds a long 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(short other) => (short)

Adds a short 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(ubyte other) => (ubyte)

add

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

Adds a uint 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)

Adds a ulong 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(ushort other) => (ushort)

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

Parameters

other - value to add

Returns

sum of the two values

bitAnd

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

Computes the bitwise AND of the value and an int value.

Parameters

other - value to bitwise AND with

Returns

result of bitwise AND

bitAnd

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

Computes the bitwise AND of the value and a long value.

Parameters

other - value to bitwise AND with

Returns

result of bitwise AND

bitAnd

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

Computes the bitwise AND of the value and a short value.

Parameters

other - value to bitwise AND with

Returns

result of bitwise AND

bitAnd

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

bitAnd

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

Computes the bitwise AND of the value and a uint value.

Parameters

other - value to bitwise AND with

Returns

result of bitwise AND

bitAnd

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

Computes the bitwise AND of the value and a ulong value.

Parameters

other - value to bitwise AND with

Returns

result of bitwise AND

bitAnd

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

Computes the bitwise AND of the value and a ushort value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitComplement

public readonly locked bitComplement() => (ubyte)

bitOr

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

Computes the bitwise OR of the value and an int value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitOr

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

Computes the bitwise OR of the value and a long value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitOr

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

Computes the bitwise OR of the value and a short value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitOr

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

bitOr

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

Computes the bitwise OR of the value and a uint value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitOr

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

Computes the bitwise OR of the value and a ulong value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitOr

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

Computes the bitwise OR of the value and a ushort value.

Parameters

other - value to bitwise OR with

Returns

result of bitwise OR

bitRotateLeft

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

Finds the result of left-rotating the bits of the ubyte 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) => (ubyte)

bitRotateRight

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

Finds the result of right-rotating the bits of the ubyte 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) => (ubyte)

bitShiftLeft

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

Finds the result of left-shifting the bits of the ubyte 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) => (ubyte)

bitShiftRight

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

Finds the result of right-shifting the bits of the ubyte 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) => (ubyte)

bitXor

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

Computes the bitwise XOR of the value and an int value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitXor

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

Computes the bitwise XOR of the value and a long value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitXor

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

Computes the bitwise XOR of the value and a short value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitXor

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

bitXor

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

Computes the bitwise XOR of the value and a uint value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitXor

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

Computes the bitwise XOR of the value and a ulong value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

bitXor

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

Computes the bitwise XOR of the value and a ushort value.

Parameters

other - value to bitwise XOR with

Returns

result of bitwise XOR

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(float other) => (int)

Compares the current value to a float, 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(int other) => (int)

Compares the current value to an int, 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(long other) => (int)

Compares the current value to a long, 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(short other) => (int)

Compares the current value to a short, 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(ubyte other) => (int)

compare

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

Compares the current value to a uint, 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)

Compares the current value to a ulong, 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(ushort other) => (int)

Compares the current value to a ushort, 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

copy

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

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(float other) => (float)

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

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

Divides the current value by an int and returns the quotient.

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

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

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

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

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

divide

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

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

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

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

Parameters

other - value to divide by

Returns

quotient of the division

divide

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

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

Parameters

other - value to divide by

Returns

quotient of the division

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(float other) => (boolean)

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

Parameters

other - value to compare to

Returns

true if identical

equal

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

Compares the current value to an int, returning true if they represent the same number.

Parameters

other - value to compare to

Returns

true if identical

equal

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

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

Parameters

other - value to compare to

Returns

true if identical

equal

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

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

Parameters

other - value to compare to

Returns

true if identical

equal

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

equal

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

Compares the current value to a uint, 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)

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

Parameters

other - value to compare to

Returns

true if identical

equal

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

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

Parameters

other - value to compare to

Returns

true if identical

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(ubyte other) => (ubyte)

Finds the maximum of the current value and another ubyte.

Parameters

other - value

Returns

maximum value

min

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

Finds the minimum of the current value and another ubyte.

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(float other) => (float)

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

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

Divides the current value by an int and returns the remainder.

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

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

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

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

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

modulus

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

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

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

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

Parameters

other - value to divide by

Returns

remainder of the division

modulus

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

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

Parameters

other - value to divide by

Returns

remainder of the division

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(float other) => (float)

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

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

Multiplies the current value by an int and returns the resulting value.

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

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

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

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

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

multiply

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

Multiplies the current value by a uint 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)

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

Parameters

other - value to multiply by

Returns

product of the two values

multiply

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

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

Parameters

other - value to multiply by

Returns

product of the two values

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(float other) => (float)

Subtracts a float 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(int other) => (int)

Subtracts an int 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(long other) => (long)

Subtracts a long 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(short other) => (short)

Subtracts a short 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(ubyte other) => (ubyte)

subtract

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

Subtracts a uint 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)

Subtracts a ulong 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(ushort other) => (ushort)

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

Parameters

other - value to subtract

Returns

difference of the two values

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

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)

Property Detail

hash

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

Finds a hash value for the current value.

Returns

hash value