Package
Conforms to
Methods
Value Type ๐ข
Integer
Methods
๐
๐ other ๐ข โก๏ธ ๐
Whether this value and other are considered equal.
โ
โ other ๐ข โก๏ธ ๐ข
Returns the receiver minus other.
โ
โ other ๐ข โก๏ธ ๐ข
Returns the receiver plus other.
โ
โ other ๐ข โก๏ธ ๐ข
Returns the receiver divided by other.
โ
โ other ๐ข โก๏ธ ๐ข
Returns the receiver multiplied by other.
๐ฎ
๐ฎ other ๐ข โก๏ธ ๐ข
Returns the receiver modulus other.
โ
โ other ๐ข โก๏ธ ๐
Returns true if the receiver is smaller than other.
โถ
โถ other ๐ข โก๏ธ ๐
Returns true if the receiver is greater than other.
โ๐
โ๐ other ๐ข โก๏ธ ๐
Returns true if the receiver is smaller than or equal to other.
โถ๐
โถ๐ other ๐ข โก๏ธ ๐
Returns true if the receiver is greater than or equal to other.
โญ
โญ other ๐ข โก๏ธ ๐ข
Returns this integer AND other.
๐ข
๐ข other ๐ข โก๏ธ ๐ข
Returns this integer OR other.
โ
โ other ๐ข โก๏ธ ๐ข
Returns this integer XOR other.
โโ๏ธ
โ๏ธ โ โก๏ธ ๐ข
Returns NOT applied to this integer.
๐
๐ n ๐ข โก๏ธ ๐ข
Shifts this integer by n bits to the left.
๐
๐ n ๐ข โก๏ธ ๐ข
Shifts this integer by n bits to the right.
๐งโ๏ธ
โ๏ธ ๐ง โก๏ธ ๐ข
Returns the absolute value of this ๐ข.
๐กโ๏ธ
โ๏ธ ๐ก base ๐ข โก๏ธ ๐ก
Creates a string representation of this integer. base must be greater than or equal to 2 and less than or equal to 35.
The digits used to represent the integer are 0123456789abcdefghijklmnopqrstuvxyz
.
๐กโ๏ธ
โ๏ธ ๐ก โก๏ธ ๐ก
Creates a string representation of this integer in decimal base.
๐ฏโ๏ธ
โ๏ธ ๐ฏ โก๏ธ ๐ฏ
Returns the double representation of this integer.
๐โ๏ธ
โ๏ธ ๐ โก๏ธ ๐ข
Returns the additive inverse of this integer. If this integer is x*, the result equals *-x.
๐งโ๏ธ
โ๏ธ ๐ง โก๏ธ ๐ง
Converts this integer to a byte. The value of this integer must be in [-128, 127].