Class Int8
Value
Object
An 8-bit signed integer.
- Source Code:
- View Source
Constant Summary
MIN :Int8 - The smallest value this type can hold (-,128).
MAX :Int8 - The largest value this type can hold (127).
Class Method Summary
-- index operator --[] (range :):Range<Int8> ListView<Int8> - Returns a list of all integers in the given range.
-- index operator --[] (range :):SteppedRange<Int8, Int8> ListView<Int8> - Returns a list of all integers in the given stepped range.
parse (str :,String radix :):Int Int8? - Parses a string as a number in the specified radix.
Field Summary
value :builtin_int8 abs :Int8 - The absolute value of this number.
bits :ListView<Bit> - A view of this number as a collection of bits, with
bits[0]as the least significant bit. sqrt :Real32 - The square root of this number.
bitCount :Int8 - The number of
1bits in this number's binary representation. asInt :Int - This number converted to an Int.
toInt :Int - This number converted to an Int.
asInt16 :Int16 - This number sign extended to a 16 bit signed number.
toInt16 :Int16 - This number sign extended to a 16 bit signed number.
asInt32 :Int32 - This number sign extended to a 32 bit signed number.
toInt32 :Int32 - This number sign extended to a 32 bit signed number.
asInt64 :Int64 - This number sign extended to a 64 bit signed number.
toInt64 :Int64 - This number sign extended to a 64 bit signed number.
asUInt :UInt - This number converted to a UInt.
toUInt :UInt - This number converted to a UInt.
asUInt8 :UInt8 - This number reinterpreted as an 8 bit unsigned number.
toUInt8 :UInt8 - This number reinterpreted as an 8 bit unsigned number.
asUInt16 :UInt16 - This number sign extended to a 16 bit unsigned number.
toUInt16 :UInt16 - This number sign extended to a 16 bit unsigned number.
asUInt32 :UInt32 - This number sign extended to a 32 bit unsigned number.
toUInt32 :UInt32 - This number sign extended to a 32 bit unsigned number.
asUInt64 :UInt64 - This number sign extended to a 64 bit unsigned number.
toUInt64 :UInt64 - This number sign extended to a 64 bit unsigned number.
asReal32 :Real32 - This number converted to a 32 bit floating point number.
toReal32 :Real32 - This number converted to a 32 bit floating point number.
asReal64 :Real64 - This number converted to a 64 bit floating point number.
toReal64 :Real64 - This number converted to a 64 bit floating point number.
Instance Method Summary
-- add operator --+ (other :):Int8 Int32 - Adds another number to this number.
-- add operator --+ (other :):Int8 Int8 - Adds another number to this number.
-- add operator --+ (other :):Int16 Int32 - Adds another number to this number.
-- add operator --+ (other :):Int32 Int32 - Adds another number to this number.
-- add operator --+ (other :):Int64 Int64 - Adds another number to this number.
-- add operator --+ (other :):Int Int - Adds another number to this number.
-- add operator --+ (other :):UInt8 Int32 - Adds another number to this number.
-- add operator --+ (other :):UInt16 Int32 - Adds another number to this number.
-- add operator --+ (other :):UInt32 Int64 - Adds another number to this number.
-- add operator --+ (other :):UInt Int64 - Adds another number to this number.
-- unchecked add operator --+& (other :):Int8 Int32 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):Int8 Int8 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):Int16 Int32 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):Int32 Int32 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):Int64 Int64 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):Int Int - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):UInt8 Int32 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):UInt16 Int32 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):UInt32 Int64 - Adds another number to this number without checking for overflow.
-- unchecked add operator --+& (other :):UInt Int64 - Adds another number to this number without checking for overflow.
-- subtract operator --- (other :):Int8 Int32 - Subtracts another number from this number.
-- subtract operator --- (other :):Int8 Int8 - Subtracts another number from this number.
-- subtract operator --- (other :):Int16 Int32 - Subtracts another number from this number.
-- subtract operator --- (other :):Int32 Int32 - Subtracts another number from this number.
-- subtract operator --- (other :):Int64 Int64 - Subtracts another number from this number.
-- subtract operator --- (other :):Int Int - Subtracts another number from this number.
-- subtract operator --- (other :):UInt8 Int32 - Subtracts another number from this number.
-- subtract operator --- (other :):UInt16 Int32 - Subtracts another number from this number.
-- subtract operator --- (other :):UInt32 Int64 - Subtracts another number from this number.
-- subtract operator --- (other :):UInt Int64 - Subtracts another number from this number.
-- unchecked subtract operator ---& (other :):Int8 Int32 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):Int8 Int8 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):Int16 Int32 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):Int32 Int32 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):Int64 Int64 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):Int Int - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):UInt8 Int32 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):UInt16 Int32 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):UInt32 Int64 - Subtracts another number from this number without checking for overflow.
-- unchecked subtract operator ---& (other :):UInt Int64 - Subtracts another number from this number without checking for overflow.
-- subtract operator --- ():Int8 - Returns the negation (additive inverse) of this number
-- multiply operator --* (other :):Int8 Int32 - Multiplies this number by another number.
-- multiply operator --* (other :):Int8 Int8 - Multiplies this number by another number.
-- multiply operator --* (other :):Int16 Int32 - Multiplies this number by another number.
-- multiply operator --* (other :):Int32 Int32 - Multiplies this number by another number.
-- multiply operator --* (other :):Int64 Int64 - Multiplies this number by another number.
-- multiply operator --* (other :):Int Int - Multiplies this number by another number.
-- multiply operator --* (other :):UInt8 Int32 - Multiplies this number by another number.
-- multiply operator --* (other :):UInt16 Int32 - Multiplies this number by another number.
-- multiply operator --* (other :):UInt32 Int64 - Multiplies this number by another number.
-- multiply operator --* (other :):UInt Int64 - Multiplies this number by another number.
-- unchecked multiply operator --*& (other :):Int8 Int32 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):Int8 Int8 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):Int16 Int32 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):Int32 Int32 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):Int64 Int64 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):Int Int - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):UInt8 Int32 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):UInt16 Int32 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):UInt32 Int64 - Multiplies this number by another number without checking for overflow.
-- unchecked multiply operator --*& (other :):UInt Int64 - Multiplies this number by another number without checking for overflow.
-- integer divide operator --// (other :):Int8 Int32 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):Int8 Int8 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):Int16 Int32 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):Int32 Int32 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):Int64 Int64 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):Int Int - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):UInt8 Int32 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):UInt16 Int32 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):UInt32 Int64 - Divides this number by another number, returning the whole number portion.
-- integer divide operator --// (other :):UInt Int64 - Divides this number by another number, returning the whole number portion.
-- unchecked integer divide operator --//& (other :):Int8 Int32 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):Int8 Int8 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):Int16 Int32 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):Int32 Int32 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):Int64 Int64 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):Int Int - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):UInt8 Int32 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):UInt16 Int32 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):UInt32 Int64 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- unchecked integer divide operator --//& (other :):UInt Int64 - Divides this number by another number, returning the whole number portion, without checking for overflow.
-- remainder operator --% (other :):Int8 Int32 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):Int8 Int8 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):Int16 Int32 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):Int32 Int32 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):Int64 Int64 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):Int Int - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):UInt8 Int32 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):UInt16 Int32 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):UInt32 Int64 - Returns the remainder of dividing this number by another number.
-- remainder operator --% (other :):UInt Int64 - Returns the remainder of dividing this number by another number.
-- divide operator --/ (other :):Int8 Real32 - Divides this number by another number.
-- divide operator --/ (other :):Int16 Real32 - Divides this number by another number.
-- divide operator --/ (other :):Int32 Real32 - Divides this number by another number.
-- divide operator --/ (other :):Int64 Real64 - Divides this number by another number.
-- divide operator --/ (other :):UInt8 Real32 - Divides this number by another number.
-- divide operator --/ (other :):UInt16 Real32 - Divides this number by another number.
-- divide operator --/ (other :):UInt32 Real32 - Divides this number by another number.
-- divide operator --/ (other :):UInt64 Real64 - Divides this number by another number.
-- divide operator --/ (other :):Real32 Real32 - Divides this number by another number.
-- divide operator --/ (other :):Real64 Real64 - Divides this number by another number.
-- bitwise not operator --!! ():Int8 - Returns the bitwise NOT of this number.
-- bitwise and operator --&& (other :):Int8 Int32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):Int8 Int8 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):Int16 Int32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):Int32 Int32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):Int64 Int64 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):Int Int - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):UInt8 UInt32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):UInt16 UInt32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):UInt32 UInt32 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):UInt64 UInt64 - Returns the bitwise AND of this number with another number.
-- bitwise and operator --&& (other :):UInt UInt - Returns the bitwise AND of this number with another number.
-- bitwise or operator --|| (other :):Int8 Int32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):Int8 Int8 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):Int16 Int32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):Int32 Int32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):Int64 Int64 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):Int Int - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):UInt8 UInt32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):UInt16 UInt32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):UInt32 UInt32 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):UInt64 UInt64 - Returns the bitwise OR of this number with another number.
-- bitwise or operator --|| (other :):UInt UInt - Returns the bitwise OR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int8 Int32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int8 Int8 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int16 Int32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int32 Int32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int64 Int64 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):Int Int - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):UInt8 UInt32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):UInt16 UInt32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):UInt32 UInt32 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):UInt64 UInt64 - Returns the bitwise XOR of this number with another number.
-- bitwise exclusive or operator --~~ (other :):UInt UInt - Returns the bitwise XOR of this number with another number.
-- left shift operator --<< (other :):Int8 Int32 - Returns this number shifted left by the specified number of bits.
-- left shift operator --<< (other :):Int8 Int8 - Returns this number shifted left by the specified number of bits.
-- unchecked left shift operator --<<& (other :):Int8 Int32 - Returns this number shifted left by the specified number of bits, without checking for overflow.
-- unchecked left shift operator --<<& (other :):Int8 Int8 - Returns this number shifted left by the specified number of bits, without checking for overflow.
-- right shift operator -->> (other :):Int8 Int32 - Returns this number arithmetic shifted right by the specified number of bits.
-- right shift operator -->> (other :):Int8 Int8 - Returns this number arithmetic shifted right by the specified number of bits.
-- equals operator --= (other :):Int8 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):Int16 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):Int32 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):Int64 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):Int Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):UInt8 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):UInt16 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):UInt32 Bit - Returns
trueif this number is equal to the given number. -- equals operator --= (other :):UInt Bit - Returns
trueif this number is equal to the given number. -- not equal operator --!= (other :):Int8 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):Int16 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):Int32 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):Int64 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):Int Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):UInt8 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):UInt16 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):UInt32 Bit - Returns
trueif this number is not equal to the given number. -- not equal operator --!= (other :):UInt Bit - Returns
trueif this number is not equal to the given number. -- less than operator --< (other :):Int8 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):Int16 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):Int32 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):Int64 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):Int Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):UInt8 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):UInt16 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):UInt32 Bit - Returns
trueif this number is less than the given number. -- less than operator --< (other :):UInt Bit - Returns
trueif this number is less than the given number. -- greater than operator --> (other :):Int8 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):Int16 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):Int32 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):Int64 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):Int Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):UInt8 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):UInt16 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):UInt32 Bit - Returns
trueif this number is greater than the given number. -- greater than operator --> (other :):UInt Bit - Returns
trueif this number is greater than the given number. -- greater than or equal operator -->= (other :):Int8 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):Int16 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):Int32 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):Int64 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):Int Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):UInt8 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):UInt16 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):UInt32 Bit - Returns
trueif this number is greater than or equal to the given number. -- greater than or equal operator -->= (other :):UInt Bit - Returns
trueif this number is greater than or equal to the given number. -- less than or equal operator --<= (other :):Int8 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):Int16 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):Int32 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):Int64 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):Int Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):UInt8 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):UInt16 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):UInt32 Bit - Returns
trueif this number is less than or equal to the given number. -- less than or equal operator --<= (other :):UInt Bit - Returns
trueif this number is less than or equal to the given number. min (other :):Int8 Int8 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):Int16 Int16 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):Int32 Int32 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):Int64 Int64 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):Int Int - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):UInt8 Int16 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):UInt16 Int32 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):UInt32 Int64 - Returns the smaller (closest to negative infinity) of this number and another number.
min (other :):UInt Int64 - Returns the smaller (closest to negative infinity) of this number and another number.
max (other :):Int8 Int8 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):Int16 Int16 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):Int32 Int32 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):Int64 Int64 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):Int Int - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):UInt8 Int16 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):UInt16 Int32 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):UInt32 Int64 - Returns the larger (closest to positive infinity) of this number and another number.
max (other :):UInt Int64 - Returns the larger (closest to positive infinity) of this number and another number.
format (fmt :):String String - Returns a formatted representation of this number.
Constants
The smallest value this type can hold (-,128).
The largest value this type can hold (127).
Fields
The absolute value of this number.
A view of this number as a collection of bits, with bits[0] as the least significant bit.
The square root of this number.
The number of 1 bits in this number's binary representation.
This number converted to an Int.
This number converted to an Int.
This number sign extended to a 16 bit signed number.
This number sign extended to a 16 bit signed number.
This number sign extended to a 32 bit signed number.
This number sign extended to a 32 bit signed number.
This number sign extended to a 64 bit signed number.
This number sign extended to a 64 bit signed number.
This number converted to a UInt. If this number is not in the range of a UInt, a safety violation occurs.
This number converted to a UInt. This function never fails, even if the number is not in the range of a UInt.
This number reinterpreted as an 8 bit unsigned number. If this number is not in the range of an 8 bit unsigned number, a safety violation occurs.
This number reinterpreted as an 8 bit unsigned number. This function never fails, even if the number is not in the range of an 8 bit unsigned number.
This number sign extended to a 16 bit unsigned number. If this number is not in the range of a 16 bit unsigned number, a safety violation occurs.
This number sign extended to a 16 bit unsigned number. This function never fails, even if the number is not in the range of a 16 bit unsigned number.
This number sign extended to a 32 bit unsigned number. If this number is not in the range of a 32 bit unsigned number, a safety violation occurs.
This number sign extended to a 32 bit unsigned number. This function never fails, even if the number is not in the range of a 32 bit unsigned number.
This number sign extended to a 64 bit unsigned number. If this number is not in the range of a 64 bit unsigned number, a safety violation occurs.
This number sign extended to a 64 bit unsigned number. This function never fails, even if the number is not in the range of a 64 bit unsigned number.
This number converted to a 32 bit floating point number.
This number converted to a 32 bit floating point number.
This number converted to a 64 bit floating point number.
This number converted to a 64 bit floating point number.
Class Methods
-- index operator --
@class
function []
(range :Range<Int8>
):ListView<Int8>
Returns a list of all integers in the given range. The list is 'lazy', meaning that it does not actually allocate memory to hold the entire list.
- Parameters:
-
- value of typerange Range<Int8>
-- index operator --
@class
function []
(range :SteppedRange<Int8, Int8>
):ListView<Int8>
Returns a list of all integers in the given stepped range. The list is 'lazy', meaning that it does not actually allocate memory to hold the entire list.
- Parameters:
-
- value of typerange SteppedRange<Int8, Int8>
Instance Methods
Adds another number to this number.
- Parameters:
-
- value of typeother Int8
Adds another number to this number.
- Parameters:
-
- value of typeother Int8
Adds another number to this number.
- Parameters:
-
- value of typeother Int16
Adds another number to this number.
- Parameters:
-
- value of typeother Int32
Adds another number to this number.
- Parameters:
-
- value of typeother Int64
Adds another number to this number.
- Parameters:
-
- value of typeother Int
Adds another number to this number.
- Parameters:
-
- value of typeother UInt8
Adds another number to this number.
- Parameters:
-
- value of typeother UInt16
Adds another number to this number.
- Parameters:
-
- value of typeother UInt32
Adds another number to this number.
- Parameters:
-
- value of typeother UInt
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int16
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int32
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int64
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother Int
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother UInt8
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother UInt16
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother UInt32
Adds another number to this number without checking for overflow.
- Parameters:
-
- value of typeother UInt
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int8
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int8
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int16
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int32
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int64
Subtracts another number from this number.
- Parameters:
-
- value of typeother Int
Subtracts another number from this number.
- Parameters:
-
- value of typeother UInt8
Subtracts another number from this number.
- Parameters:
-
- value of typeother UInt16
Subtracts another number from this number.
- Parameters:
-
- value of typeother UInt32
Subtracts another number from this number.
- Parameters:
-
- value of typeother UInt
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int16
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int32
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int64
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother Int
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother UInt8
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother UInt16
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother UInt32
Subtracts another number from this number without checking for overflow.
- Parameters:
-
- value of typeother UInt
-- subtract operator --
function -
():Int8
Returns the negation (additive inverse) of this number
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int8
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int8
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int16
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int32
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int64
Multiplies this number by another number.
- Parameters:
-
- value of typeother Int
Multiplies this number by another number.
- Parameters:
-
- value of typeother UInt8
Multiplies this number by another number.
- Parameters:
-
- value of typeother UInt16
Multiplies this number by another number.
- Parameters:
-
- value of typeother UInt32
Multiplies this number by another number.
- Parameters:
-
- value of typeother UInt
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int8
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int16
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int32
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int64
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother Int
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother UInt8
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother UInt16
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother UInt32
Multiplies this number by another number without checking for overflow.
- Parameters:
-
- value of typeother UInt
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int8
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int8
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int16
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int32
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int64
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother Int
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother UInt8
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother UInt16
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother UInt32
Divides this number by another number, returning the whole number portion.
- Parameters:
-
- value of typeother UInt
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int8
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int8
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int16
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int32
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int64
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother Int
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother UInt8
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother UInt16
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother UInt32
Divides this number by another number, returning the whole number portion, without checking for overflow.
- Parameters:
-
- value of typeother UInt
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int8
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int8
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int16
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int32
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int64
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother Int
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother UInt8
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother UInt16
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother UInt32
Returns the remainder of dividing this number by another number.
- Parameters:
-
- value of typeother UInt
Divides this number by another number.
- Parameters:
-
- value of typeother Int8
Divides this number by another number.
- Parameters:
-
- value of typeother Int16
Divides this number by another number.
- Parameters:
-
- value of typeother Int32
Divides this number by another number.
- Parameters:
-
- value of typeother Int64
Divides this number by another number.
- Parameters:
-
- value of typeother UInt8
Divides this number by another number.
- Parameters:
-
- value of typeother UInt16
Divides this number by another number.
- Parameters:
-
- value of typeother UInt32
Divides this number by another number.
- Parameters:
-
- value of typeother UInt64
Divides this number by another number.
- Parameters:
-
- value of typeother Real32
Divides this number by another number.
- Parameters:
-
- value of typeother Real64
-- bitwise not operator --
function !!
():Int8
Returns the bitwise NOT of this number.
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int16
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int32
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int64
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother Int
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother UInt8
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother UInt16
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother UInt32
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother UInt64
Returns the bitwise AND of this number with another number.
- Parameters:
-
- value of typeother UInt
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int16
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int32
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int64
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother Int
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother UInt8
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother UInt16
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother UInt32
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother UInt64
Returns the bitwise OR of this number with another number.
- Parameters:
-
- value of typeother UInt
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int8
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int16
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int32
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int64
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother Int
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother UInt8
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother UInt16
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother UInt32
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother UInt64
Returns the bitwise XOR of this number with another number.
- Parameters:
-
- value of typeother UInt
Returns this number shifted left by the specified number of bits.
- Parameters:
-
- value of typeother Int8
Returns this number shifted left by the specified number of bits.
- Parameters:
-
- value of typeother Int8
Returns this number shifted left by the specified number of bits, without checking for overflow.
- Parameters:
-
- value of typeother Int8
Returns this number shifted left by the specified number of bits, without checking for overflow.
- Parameters:
-
- value of typeother Int8
Returns this number arithmetic shifted right by the specified number of bits.
- Parameters:
-
- value of typeother Int8
Returns this number arithmetic shifted right by the specified number of bits.
- Parameters:
-
- value of typeother Int8
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Equatable.=
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is equal to the given number.
- Parameters:
-
- value of typeother UInt
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Equatable.!=
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is not equal to the given number.
- Parameters:
-
- value of typeother UInt
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Comparable.<
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is less than the given number.
- Parameters:
-
- value of typeother UInt
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Comparable.>
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is greater than the given number.
- Parameters:
-
- value of typeother UInt
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Comparable.>=
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is greater than or equal to the given number.
- Parameters:
-
- value of typeother UInt
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother Int8
- Overrides:
- frost.core.Comparable.<=
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother Int16
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother Int32
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother Int64
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother Int
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother UInt8
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother UInt16
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother UInt32
Returns true if this number is less than or equal to the given number.
- Parameters:
-
- value of typeother UInt
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother Int8
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother Int16
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother Int32
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother Int64
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother Int
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt8
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt16
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt32
Returns the smaller (closest to negative infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother Int8
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother Int16
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother Int32
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother Int64
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother Int
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt8
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt16
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt32
Returns the larger (closest to positive infinity) of this number and another number.
- Parameters:
-
- value of typeother UInt
Returns a formatted representation of this number. Supported format strings are "", "d", or "D" for decimal, "b" or "B" for binary, "o" or "O" for octal, "x" for lowercase hexadecimal, and "X" for uppercase hexadecimal.
- Parameters:
-
- value of typefmt String
- Overrides:
- frost.core.Formattable.format