Int

final abstract class Int extends AnyVal
Int, a 32-bit signed integer (equivalent to Java's int primitive type) is a subtype of AnyVal. Instances of Int are not represented by an object in the underlying runtime system.
There is an implicit conversion from Int => runtime.RichInt which provides useful non-primitive operations.
Companion
object
Source
(source)
class AnyVal
trait Matchable
class Any

Value members

Methods

def toByte: Byte
Implicitly added by int2float
Source
(source)
Implicitly added by int2float
Source
(source)
def toChar: Char
Implicitly added by int2float
Source
(source)
def toInt: Int
Implicitly added by int2float
Source
(source)
def toLong: Long
Implicitly added by int2float
Source
(source)
Implicitly added by int2float
Source
(source)
Implicitly added by int2float
Source
(source)
Implicitly added by int2float
Returns this value, unmodified.
Source
(source)
Implicitly added by int2float
Returns the negation of this value.
Source
(source)
@deprecated("Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`", "2.13.0")
def +(x: String): String
Implicitly added by int2float
Source
(source)
def ==(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is equal to x, false otherwise.
Source
(source)
def !=(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def <(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is less than x, false otherwise.
Source
(source)
def <=(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def >(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >=(x: Byte): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Short): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Char): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Int): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Long): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Float): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Double): Boolean
Implicitly added by int2float
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def +(x: Byte): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Short): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Char): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Int): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Long): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Float): Float
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def +(x: Double): Double
Implicitly added by int2float
Returns the sum of this value and x.
Source
(source)
def -(x: Byte): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Short): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Char): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Int): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Long): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Float): Float
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def -(x: Double): Double
Implicitly added by int2float
Returns the difference of this value and x.
Source
(source)
def *(x: Byte): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Short): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Char): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Int): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Long): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Float): Float
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def *(x: Double): Double
Implicitly added by int2float
Returns the product of this value and x.
Source
(source)
def /(x: Byte): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Short): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Char): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Int): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Long): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Float): Float
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def /(x: Double): Double
Implicitly added by int2float
Returns the quotient of this value and x.
Source
(source)
def %(x: Byte): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Short): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Char): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Int): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Long): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Float): Float
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Double): Double
Implicitly added by int2float
Returns the remainder of the division of this value by x.
Source
(source)
def toByte: Byte
Implicitly added by int2long
Source
(source)
Implicitly added by int2long
Source
(source)
def toChar: Char
Implicitly added by int2long
Source
(source)
def toInt: Int
Implicitly added by int2long
Source
(source)
def toLong: Long
Implicitly added by int2long
Source
(source)
Implicitly added by int2long
Source
(source)
Implicitly added by int2long
Source
(source)
Implicitly added by int2long
Returns the bitwise negation of this value.
Example
~5 == -6
// in binary: ~00000101 ==
//             11111010
Source
(source)
Implicitly added by int2long
Returns this value, unmodified.
Source
(source)
Implicitly added by int2long
Returns the negation of this value.
Source
(source)
@deprecated("Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`", "2.13.0")
def +(x: String): String
Implicitly added by int2long
Source
(source)
def <<(x: Int): Long
Implicitly added by int2long
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example
6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
(source)
def <<(x: Long): Long
Implicitly added by int2long
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example
6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
(source)
def >>>(x: Int): Long
Implicitly added by int2long
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Example
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
-21 >>> 3 == 536870909
// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
//            00011111 11111111 11111111 11111101
Source
(source)
def >>>(x: Long): Long
Implicitly added by int2long
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Example
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
-21 >>> 3 == 536870909
// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
//            00011111 11111111 11111111 11111101
Source
(source)
def >>(x: Int): Long
Implicitly added by int2long
Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.
Example
-21 >> 3 == -3
// in binary: 11111111 11111111 11111111 11101011 >> 3 ==
//            11111111 11111111 11111111 11111101
Source
(source)
def >>(x: Long): Long
Implicitly added by int2long
Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.
Example
-21 >> 3 == -3
// in binary: 11111111 11111111 11111111 11101011 >> 3 ==
//            11111111 11111111 11111111 11111101
Source
(source)
def ==(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is equal to x, false otherwise.
Source
(source)
def !=(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def <(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is less than x, false otherwise.
Source
(source)
def <=(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def >(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >=(x: Byte): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Short): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Char): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Int): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Long): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Float): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Double): Boolean
Implicitly added by int2long
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def |(x: Byte): Long
Implicitly added by int2long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Short): Long
Implicitly added by int2long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Char): Long
Implicitly added by int2long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Int): Long
Implicitly added by int2long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Long): Long
Implicitly added by int2long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def &(x: Byte): Long
Implicitly added by int2long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Short): Long
Implicitly added by int2long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Char): Long
Implicitly added by int2long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Int): Long
Implicitly added by int2long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Long): Long
Implicitly added by int2long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def ^(x: Byte): Long
Implicitly added by int2long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Short): Long
Implicitly added by int2long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Char): Long
Implicitly added by int2long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Int): Long
Implicitly added by int2long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Long): Long
Implicitly added by int2long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def +(x: Byte): Long
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Short): Long
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Char): Long
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Int): Long
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Long): Long
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Float): Float
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def +(x: Double): Double
Implicitly added by int2long
Returns the sum of this value and x.
Source
(source)
def -(x: Byte): Long
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Short): Long
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Char): Long
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Int): Long
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Long): Long
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Float): Float
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def -(x: Double): Double
Implicitly added by int2long
Returns the difference of this value and x.
Source
(source)
def *(x: Byte): Long
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Short): Long
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Char): Long
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Int): Long
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Long): Long
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Float): Float
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def *(x: Double): Double
Implicitly added by int2long
Returns the product of this value and x.
Source
(source)
def /(x: Byte): Long
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Short): Long
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Char): Long
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Int): Long
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Long): Long
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Float): Float
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def /(x: Double): Double
Implicitly added by int2long
Returns the quotient of this value and x.
Source
(source)
def %(x: Byte): Long
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Short): Long
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Char): Long
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Int): Long
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Long): Long
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Float): Float
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Double): Double
Implicitly added by int2long
Returns the remainder of the division of this value by x.
Source
(source)
def toByte: Byte
Implicitly added by int2double
Source
(source)
Implicitly added by int2double
Source
(source)
def toChar: Char
Implicitly added by int2double
Source
(source)
def toInt: Int
Implicitly added by int2double
Source
(source)
def toLong: Long
Implicitly added by int2double
Source
(source)
Implicitly added by int2double
Source
(source)
Implicitly added by int2double
Source
(source)
Implicitly added by int2double
Returns this value, unmodified.
Source
(source)
Implicitly added by int2double
Returns the negation of this value.
Source
(source)
@deprecated("Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`", "2.13.0")
def +(x: String): String
Implicitly added by int2double
Source
(source)
def ==(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is equal to x, false otherwise.
Source
(source)
def !=(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def <(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is less than x, false otherwise.
Source
(source)
def <=(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def >(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >=(x: Byte): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Short): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Char): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Int): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Long): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Float): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Double): Boolean
Implicitly added by int2double
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def +(x: Byte): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Short): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Char): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Int): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Long): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Float): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def +(x: Double): Double
Implicitly added by int2double
Returns the sum of this value and x.
Source
(source)
def -(x: Byte): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Short): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Char): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Int): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Long): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Float): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def -(x: Double): Double
Implicitly added by int2double
Returns the difference of this value and x.
Source
(source)
def *(x: Byte): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Short): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Char): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Int): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Long): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Float): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def *(x: Double): Double
Implicitly added by int2double
Returns the product of this value and x.
Source
(source)
def /(x: Byte): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Short): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Char): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Int): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Long): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Float): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def /(x: Double): Double
Implicitly added by int2double
Returns the quotient of this value and x.
Source
(source)
def %(x: Byte): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Short): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Char): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Int): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Long): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Float): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Double): Double
Implicitly added by int2double
Returns the remainder of the division of this value by x.
Source
(source)
def toByte: Byte
Source
(source)
def toChar: Char
Source
(source)
def toInt: Int
Source
(source)
def toLong: Long
Source
(source)
def unary_~: Int
Returns the bitwise negation of this value.
Example
~5 == -6
// in binary: ~00000101 ==
//             11111010
Source
(source)
def unary_+: Int
Returns this value, unmodified.
Source
(source)
def unary_-: Int
Returns the negation of this value.
Source
(source)
@deprecated("Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`", "2.13.0")
def +(x: String): String
Source
(source)
def <<(x: Int): Int
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example
6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
(source)
@deprecated("shifting a value by a `Long` argument is deprecated (except when the value is a `Long`).\nCall `toInt` on the argument to maintain the current behavior and avoid the deprecation warning.", "2.12.7")
def <<(x: Long): Int
Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.
Example
6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
(source)
def >>>(x: Int): Int
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Example
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
-21 >>> 3 == 536870909
// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
//            00011111 11111111 11111111 11111101
Source
(source)
@deprecated("shifting a value by a `Long` argument is deprecated (except when the value is a `Long`).\nCall `toInt` on the argument to maintain the current behavior and avoid the deprecation warning.", "2.12.7")
def >>>(x: Long): Int
Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.
Example
21 >>> 3 == 2 // in binary: 010101 >>> 3 == 010
-21 >>> 3 == 536870909
// in binary: 11111111 11111111 11111111 11101011 >>> 3 ==
//            00011111 11111111 11111111 11111101
Source
(source)
def >>(x: Int): Int
Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.
Example
-21 >> 3 == -3
// in binary: 11111111 11111111 11111111 11101011 >> 3 ==
//            11111111 11111111 11111111 11111101
Source
(source)
@deprecated("shifting a value by a `Long` argument is deprecated (except when the value is a `Long`).\nCall `toInt` on the argument to maintain the current behavior and avoid the deprecation warning.", "2.12.7")
def >>(x: Long): Int
Returns this value bit-shifted right by the specified number of bits, filling in the left bits with the same value as the left-most bit of this. The effect of this is to retain the sign of the value.
Example
-21 >> 3 == -3
// in binary: 11111111 11111111 11111111 11101011 >> 3 ==
//            11111111 11111111 11111111 11111101
Source
(source)
def ==(x: Byte): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Short): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Char): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Int): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Long): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Float): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def ==(x: Double): Boolean
Returns true if this value is equal to x, false otherwise.
Source
(source)
def !=(x: Byte): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Short): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Char): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Int): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Long): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Float): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def !=(x: Double): Boolean
Returns true if this value is not equal to x, false otherwise.
Source
(source)
def <(x: Byte): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Short): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Char): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Int): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Long): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Float): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <(x: Double): Boolean
Returns true if this value is less than x, false otherwise.
Source
(source)
def <=(x: Byte): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Short): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Char): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Int): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Long): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Float): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def <=(x: Double): Boolean
Returns true if this value is less than or equal to x, false otherwise.
Source
(source)
def >(x: Byte): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Short): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Char): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Int): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Long): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Float): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >(x: Double): Boolean
Returns true if this value is greater than x, false otherwise.
Source
(source)
def >=(x: Byte): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Short): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Char): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Int): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Long): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Float): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def >=(x: Double): Boolean
Returns true if this value is greater than or equal to x, false otherwise.
Source
(source)
def |(x: Byte): Int
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Short): Int
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Char): Int
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Int): Int
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def |(x: Long): Long
Returns the bitwise OR of this value and x.
Example
(0xf0 | 0xaa) == 0xfa
// in binary:   11110000
//            | 10101010
//              --------
//              11111010
Source
(source)
def &(x: Byte): Int
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Short): Int
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Char): Int
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Int): Int
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def &(x: Long): Long
Returns the bitwise AND of this value and x.
Example
(0xf0 & 0xaa) == 0xa0
// in binary:   11110000
//            & 10101010
//              --------
//              10100000
Source
(source)
def ^(x: Byte): Int
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Short): Int
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Char): Int
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Int): Int
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def ^(x: Long): Long
Returns the bitwise XOR of this value and x.
Example
(0xf0 ^ 0xaa) == 0x5a
// in binary:   11110000
//            ^ 10101010
//              --------
//              01011010
Source
(source)
def +(x: Byte): Int
Returns the sum of this value and x.
Source
(source)
def +(x: Short): Int
Returns the sum of this value and x.
Source
(source)
def +(x: Char): Int
Returns the sum of this value and x.
Source
(source)
def +(x: Int): Int
Returns the sum of this value and x.
Source
(source)
def +(x: Long): Long
Returns the sum of this value and x.
Source
(source)
def +(x: Float): Float
Returns the sum of this value and x.
Source
(source)
def +(x: Double): Double
Returns the sum of this value and x.
Source
(source)
def -(x: Byte): Int
Returns the difference of this value and x.
Source
(source)
def -(x: Short): Int
Returns the difference of this value and x.
Source
(source)
def -(x: Char): Int
Returns the difference of this value and x.
Source
(source)
def -(x: Int): Int
Returns the difference of this value and x.
Source
(source)
def -(x: Long): Long
Returns the difference of this value and x.
Source
(source)
def -(x: Float): Float
Returns the difference of this value and x.
Source
(source)
def -(x: Double): Double
Returns the difference of this value and x.
Source
(source)
def *(x: Byte): Int
Returns the product of this value and x.
Source
(source)
def *(x: Short): Int
Returns the product of this value and x.
Source
(source)
def *(x: Char): Int
Returns the product of this value and x.
Source
(source)
def *(x: Int): Int
Returns the product of this value and x.
Source
(source)
def *(x: Long): Long
Returns the product of this value and x.
Source
(source)
def *(x: Float): Float
Returns the product of this value and x.
Source
(source)
def *(x: Double): Double
Returns the product of this value and x.
Source
(source)
def /(x: Byte): Int
Returns the quotient of this value and x.
Source
(source)
def /(x: Short): Int
Returns the quotient of this value and x.
Source
(source)
def /(x: Char): Int
Returns the quotient of this value and x.
Source
(source)
def /(x: Int): Int
Returns the quotient of this value and x.
Source
(source)
def /(x: Long): Long
Returns the quotient of this value and x.
Source
(source)
def /(x: Float): Float
Returns the quotient of this value and x.
Source
(source)
def /(x: Double): Double
Returns the quotient of this value and x.
Source
(source)
def %(x: Byte): Int
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Short): Int
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Char): Int
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Int): Int
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Long): Long
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Float): Float
Returns the remainder of the division of this value by x.
Source
(source)
def %(x: Double): Double
Returns the remainder of the division of this value by x.
Source
(source)