Int

final abstract class Int extends AnyVal

Int, a 32-bit signed integer (equivalent to Java's int primitive type) is a subtype of scala.AnyVal. Instances of Int are not represented by an object in the underlying runtime system.

There is an implicit conversion from scala.Int => scala.runtime.RichInt which provides useful non-primitive operations.

Companion
object
Source
Int.scala
class AnyVal
trait Matchable
class Any

Value members

Abstract methods

def !=(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is not equal to x, false otherwise.

def !=(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is not equal to x, false otherwise.

def !=(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is not equal to x, false otherwise.

def !=(x: Byte): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Short): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Char): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Int): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Long): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Float): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def !=(x: Double): Boolean

Returns true if this value is not equal to x, false otherwise.

Source
Int.scala
def %(x: Byte): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Short): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Char): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Int): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Long): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Float): Float
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Double): Double
Implicitly added by int2float

Returns the remainder of the division of this value by x.

def %(x: Byte): Long
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Short): Long
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Char): Long
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Int): Long
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Long): Long
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Float): Float
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Double): Double
Implicitly added by int2long

Returns the remainder of the division of this value by x.

def %(x: Byte): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Short): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Char): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Int): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Long): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Float): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Double): Double
Implicitly added by int2double

Returns the remainder of the division of this value by x.

def %(x: Byte): Int

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Short): Int

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Char): Int

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Int): Int

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Long): Long

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Float): Float

Returns the remainder of the division of this value by x.

Source
Int.scala
def %(x: Double): Double

Returns the remainder of the division of this value by x.

Source
Int.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
def &(x: Byte): Int

Returns the bitwise AND of this value and x.

Example

(0xf0 & 0xaa) == 0xa0 // in binary: 11110000 // & 10101010 // -------- // 10100000
Source
Int.scala
def &(x: Short): Int

Returns the bitwise AND of this value and x.

Example

(0xf0 & 0xaa) == 0xa0 // in binary: 11110000 // & 10101010 // -------- // 10100000
Source
Int.scala
def &(x: Char): Int

Returns the bitwise AND of this value and x.

Example

(0xf0 & 0xaa) == 0xa0 // in binary: 11110000 // & 10101010 // -------- // 10100000
Source
Int.scala
def &(x: Int): Int

Returns the bitwise AND of this value and x.

Example

(0xf0 & 0xaa) == 0xa0 // in binary: 11110000 // & 10101010 // -------- // 10100000
Source
Int.scala
def &(x: Long): Long

Returns the bitwise AND of this value and x.

Example

(0xf0 & 0xaa) == 0xa0 // in binary: 11110000 // & 10101010 // -------- // 10100000
Source
Int.scala
def *(x: Byte): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Short): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Char): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Int): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Long): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Float): Float
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Double): Double
Implicitly added by int2float

Returns the product of this value and x.

def *(x: Byte): Long
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Short): Long
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Char): Long
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Int): Long
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Long): Long
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Float): Float
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Double): Double
Implicitly added by int2long

Returns the product of this value and x.

def *(x: Byte): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Short): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Char): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Int): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Long): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Float): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Double): Double
Implicitly added by int2double

Returns the product of this value and x.

def *(x: Byte): Int

Returns the product of this value and x.

Source
Int.scala
def *(x: Short): Int

Returns the product of this value and x.

Source
Int.scala
def *(x: Char): Int

Returns the product of this value and x.

Source
Int.scala
def *(x: Int): Int

Returns the product of this value and x.

Source
Int.scala
def *(x: Long): Long

Returns the product of this value and x.

Source
Int.scala
def *(x: Float): Float

Returns the product of this value and x.

Source
Int.scala
def *(x: Double): Double

Returns the product of this value and x.

Source
Int.scala
def +(x: Byte): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Short): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Char): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Int): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Long): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Float): Float
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Double): Double
Implicitly added by int2float

Returns the sum of this value and x.

def +(x: Byte): Long
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Short): Long
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Char): Long
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Int): Long
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Long): Long
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Float): Float
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Double): Double
Implicitly added by int2long

Returns the sum of this value and x.

def +(x: Byte): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Short): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Char): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Int): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Long): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Float): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Double): Double
Implicitly added by int2double

Returns the sum of this value and x.

def +(x: Byte): Int

Returns the sum of this value and x.

Source
Int.scala
def +(x: Short): Int

Returns the sum of this value and x.

Source
Int.scala
def +(x: Char): Int

Returns the sum of this value and x.

Source
Int.scala
def +(x: Int): Int

Returns the sum of this value and x.

Source
Int.scala
def +(x: Long): Long

Returns the sum of this value and x.

Source
Int.scala
def +(x: Float): Float

Returns the sum of this value and x.

Source
Int.scala
def +(x: Double): Double

Returns the sum of this value and x.

Source
Int.scala
def -(x: Byte): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Short): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Char): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Int): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Long): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Float): Float
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Double): Double
Implicitly added by int2float

Returns the difference of this value and x.

def -(x: Byte): Long
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Short): Long
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Char): Long
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Int): Long
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Long): Long
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Float): Float
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Double): Double
Implicitly added by int2long

Returns the difference of this value and x.

def -(x: Byte): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Short): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Char): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Int): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Long): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Float): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Double): Double
Implicitly added by int2double

Returns the difference of this value and x.

def -(x: Byte): Int

Returns the difference of this value and x.

Source
Int.scala
def -(x: Short): Int

Returns the difference of this value and x.

Source
Int.scala
def -(x: Char): Int

Returns the difference of this value and x.

Source
Int.scala
def -(x: Int): Int

Returns the difference of this value and x.

Source
Int.scala
def -(x: Long): Long

Returns the difference of this value and x.

Source
Int.scala
def -(x: Float): Float

Returns the difference of this value and x.

Source
Int.scala
def -(x: Double): Double

Returns the difference of this value and x.

Source
Int.scala
def /(x: Byte): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Short): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Char): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Int): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Long): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Float): Float
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Double): Double
Implicitly added by int2float

Returns the quotient of this value and x.

def /(x: Byte): Long
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Short): Long
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Char): Long
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Int): Long
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Long): Long
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Float): Float
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Double): Double
Implicitly added by int2long

Returns the quotient of this value and x.

def /(x: Byte): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Short): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Char): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Int): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Long): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Float): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Double): Double
Implicitly added by int2double

Returns the quotient of this value and x.

def /(x: Byte): Int

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Short): Int

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Char): Int

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Int): Int

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Long): Long

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Float): Float

Returns the quotient of this value and x.

Source
Int.scala
def /(x: Double): Double

Returns the quotient of this value and x.

Source
Int.scala
def <(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is less than x, false otherwise.

def <(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is less than x, false otherwise.

def <(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is less than x, false otherwise.

def <(x: Byte): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Short): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Char): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Int): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Long): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Float): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
def <(x: Double): Boolean

Returns true if this value is less than x, false otherwise.

Source
Int.scala
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
Long.scala
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
Long.scala
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
Int.scala
def <=(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is less than or equal to x, false otherwise.

def <=(x: Byte): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Short): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Char): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Int): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Long): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Float): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def <=(x: Double): Boolean

Returns true if this value is less than or equal to x, false otherwise.

Source
Int.scala
def ==(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is equal to x, false otherwise.

def ==(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is equal to x, false otherwise.

def ==(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is equal to x, false otherwise.

def ==(x: Byte): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Short): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Char): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Int): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Long): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Float): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def ==(x: Double): Boolean

Returns true if this value is equal to x, false otherwise.

Source
Int.scala
def >(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is greater than x, false otherwise.

def >(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is greater than x, false otherwise.

def >(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is greater than x, false otherwise.

def >(x: Byte): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Short): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Char): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Int): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Long): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Float): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >(x: Double): Boolean

Returns true if this value is greater than x, false otherwise.

Source
Int.scala
def >=(x: Byte): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Short): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Char): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Int): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Long): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Float): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Double): Boolean
Implicitly added by int2float

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Byte): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Short): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Char): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Int): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Long): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Float): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Double): Boolean
Implicitly added by int2long

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Byte): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Short): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Char): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Int): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Long): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Float): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Double): Boolean
Implicitly added by int2double

Returns true if this value is greater than or equal to x, false otherwise.

def >=(x: Byte): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Short): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Char): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Int): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Long): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Float): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
def >=(x: Double): Boolean

Returns true if this value is greater than or equal to x, false otherwise.

Source
Int.scala
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
Long.scala
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
Long.scala
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
Int.scala
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
Long.scala
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
Long.scala
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
Int.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
def ^(x: Byte): Int

Returns the bitwise XOR of this value and x.

Example

(0xf0 ^ 0xaa) == 0x5a // in binary: 11110000 // ^ 10101010 // -------- // 01011010
Source
Int.scala
def ^(x: Short): Int

Returns the bitwise XOR of this value and x.

Example

(0xf0 ^ 0xaa) == 0x5a // in binary: 11110000 // ^ 10101010 // -------- // 01011010
Source
Int.scala
def ^(x: Char): Int

Returns the bitwise XOR of this value and x.

Example

(0xf0 ^ 0xaa) == 0x5a // in binary: 11110000 // ^ 10101010 // -------- // 01011010
Source
Int.scala
def ^(x: Int): Int

Returns the bitwise XOR of this value and x.

Example

(0xf0 ^ 0xaa) == 0x5a // in binary: 11110000 // ^ 10101010 // -------- // 01011010
Source
Int.scala
def ^(x: Long): Long

Returns the bitwise XOR of this value and x.

Example

(0xf0 ^ 0xaa) == 0x5a // in binary: 11110000 // ^ 10101010 // -------- // 01011010
Source
Int.scala
def toByte: Byte
Implicitly added by int2float
def toByte: Byte
Implicitly added by int2long
def toByte: Byte
Implicitly added by int2double
def toByte: Byte
Source
Int.scala
def toChar: Char
Implicitly added by int2float
def toChar: Char
Implicitly added by int2long
def toChar: Char
Implicitly added by int2double
def toChar: Char
Source
Int.scala
Implicitly added by int2float
Implicitly added by int2long
Implicitly added by int2double
Implicitly added by int2float
Implicitly added by int2long
Implicitly added by int2double
def toInt: Int
Implicitly added by int2float
def toInt: Int
Implicitly added by int2long
def toInt: Int
Implicitly added by int2double
def toInt: Int
Source
Int.scala
def toLong: Long
Implicitly added by int2float
def toLong: Long
Implicitly added by int2long
def toLong: Long
Implicitly added by int2double
def toLong: Long
Source
Int.scala
Implicitly added by int2float
Implicitly added by int2long
Implicitly added by int2double
Implicitly added by int2float

Returns this value, unmodified.

Implicitly added by int2long

Returns this value, unmodified.

Implicitly added by int2double

Returns this value, unmodified.

def unary_+: Int

Returns this value, unmodified.

Source
Int.scala
Implicitly added by int2float

Returns the negation of this value.

Implicitly added by int2long

Returns the negation of this value.

Implicitly added by int2double

Returns the negation of this value.

def unary_-: Int

Returns the negation of this value.

Source
Int.scala
Implicitly added by int2long

Returns the bitwise negation of this value.

Example

~5 == -6 // in binary: ~00000101 == // 11111010
Source
Long.scala
def unary_~: Int

Returns the bitwise negation of this value.

Example

~5 == -6 // in binary: ~00000101 == // 11111010
Source
Int.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
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
Long.scala
def |(x: Byte): Int

Returns the bitwise OR of this value and x.

Example

(0xf0 | 0xaa) == 0xfa // in binary: 11110000 // | 10101010 // -------- // 11111010
Source
Int.scala
def |(x: Short): Int

Returns the bitwise OR of this value and x.

Example

(0xf0 | 0xaa) == 0xfa // in binary: 11110000 // | 10101010 // -------- // 11111010
Source
Int.scala
def |(x: Char): Int

Returns the bitwise OR of this value and x.

Example

(0xf0 | 0xaa) == 0xfa // in binary: 11110000 // | 10101010 // -------- // 11111010
Source
Int.scala
def |(x: Int): Int

Returns the bitwise OR of this value and x.

Example

(0xf0 | 0xaa) == 0xfa // in binary: 11110000 // | 10101010 // -------- // 11111010
Source
Int.scala
def |(x: Long): Long

Returns the bitwise OR of this value and x.

Example

(0xf0 | 0xaa) == 0xfa // in binary: 11110000 // | 10101010 // -------- // 11111010
Source
Int.scala

Deprecated methods

@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
Deprecated
Source
Float.scala
@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
Deprecated
Source
Long.scala
@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
Deprecated
Source
Double.scala
@deprecated("Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`", "2.13.0")
def +(x: String): String
Deprecated
Source
Int.scala
@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
Deprecated
Source
Int.scala
@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
Deprecated
Source
Int.scala
@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
Deprecated
Source
Int.scala