Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/Long

Long

scala.Long
See theLong companion object
final abstractclassLong() extendsAnyVal

Long, a 64-bit signed integer (equivalent to Java'slong primitive type) is a subtype ofscala.AnyVal. Instances ofLong are not represented by an object in the underlying runtime system.

There is an implicit conversion fromscala.Long =>scala.runtime.RichLong which provides useful non-primitive operations.

Attributes

Companion
object
Source
Long.scala
Graph
Supertypes
classAnyVal
traitMatchable
classAny

Members list

Value members

Abstract methods

Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

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

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

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

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

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

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala
def%(x:Byte):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Short):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Char):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Int):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Long):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Float):Double
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Double.scala
def%(x:Byte):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Short):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Char):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Int):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Long):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Float):Float
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Float.scala
def%(x:Byte):Long

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

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

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

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

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

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

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

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

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

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

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Long.scala

Returns the remainder of the division of this value byx.

Returns the remainder of the division of this value byx.

Attributes

Source
Long.scala
def&(x:Byte):Long

Returns the bitwise AND of this value andx.

Returns the bitwise AND of this value andx.

Attributes

Example

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

Returns the bitwise AND of this value andx.

Returns the bitwise AND of this value andx.

Attributes

Example

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

Returns the bitwise AND of this value andx.

Returns the bitwise AND of this value andx.

Attributes

Example

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

Returns the bitwise AND of this value andx.

Returns the bitwise AND of this value andx.

Attributes

Example

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

Returns the bitwise AND of this value andx.

Returns the bitwise AND of this value andx.

Attributes

Example

(0xf0 & 0xaa) == 0xa0// in binary:   11110000//            & 10101010//              --------//              10100000
Source
Long.scala
def*(x:Byte):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Short):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Char):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Int):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Long):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Float):Double
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Double.scala
def*(x:Byte):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Short):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Char):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Int):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Long):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Float):Float
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Float.scala
def*(x:Byte):Long

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

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

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

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

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

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

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

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

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

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

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Long.scala

Returns the product of this value andx.

Returns the product of this value andx.

Attributes

Source
Long.scala
def+(x:Byte):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Short):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Char):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Int):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Long):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Float):Double
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Double.scala
def+(x:Byte):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Short):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Char):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Int):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Long):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Float):Float
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Float.scala
def+(x:Byte):Long

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

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

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

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

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

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

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

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

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

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

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Long.scala

Returns the sum of this value andx.

Returns the sum of this value andx.

Attributes

Source
Long.scala
def-(x:Byte):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Short):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Char):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Int):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Long):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Float):Double
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Double.scala
def-(x:Byte):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Short):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Char):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Int):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Long):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Float):Float
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Float.scala
def-(x:Byte):Long

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

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

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

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

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

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

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

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

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

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

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Long.scala

Returns the difference of this value andx.

Returns the difference of this value andx.

Attributes

Source
Long.scala
def/(x:Byte):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Short):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Char):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Int):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Long):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Float):Double
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Double.scala
def/(x:Byte):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Short):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Char):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Int):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Long):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Float):Float
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Float.scala
def/(x:Byte):Long

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

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

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

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

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

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

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

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

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

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

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Long.scala

Returns the quotient of this value andx.

Returns the quotient of this value andx.

Attributes

Source
Long.scala
def<(x:Byte):Boolean
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
def<(x:Char):Boolean
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
def<(x:Long):Boolean
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Double.scala
def<(x:Byte):Boolean
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Float.scala
def<(x:Char):Boolean
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Float.scala
def<(x:Long):Boolean
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is less than x,false otherwise.

Returnstrue if this value is less than x,false otherwise.

Attributes

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

Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

Attributes

Example

6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
Long.scala
def<<(x:Long):Long

Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

Returns this value bit-shifted left by the specified number of bits, filling in the new right bits with zeroes.

Attributes

Example

6 << 3 == 48 // in binary: 0110 << 3 == 0110000
Source
Long.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

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

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

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

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

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

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

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

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

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

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Float.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

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

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is equal to x,false otherwise.

Returnstrue if this value is equal to x,false otherwise.

Attributes

Source
Long.scala
def>(x:Byte):Boolean
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
def>(x:Char):Boolean
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
def>(x:Long):Boolean
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
Implicitly added bylong2double

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Double.scala
def>(x:Byte):Boolean
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Float.scala
def>(x:Char):Boolean
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Float.scala
def>(x:Long):Boolean
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Float.scala
Implicitly added bylong2float

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

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

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Long.scala

Returnstrue if this value is greater than x,false otherwise.

Returnstrue if this value is greater than x,false otherwise.

Attributes

Source
Long.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

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

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2double

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

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

Attributes

Source
Double.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

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

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala
Implicitly added bylong2float

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

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

Attributes

Source
Float.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

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

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

Source
Long.scala

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

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

Attributes

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

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.

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.

Attributes

Example

-21 >> 3 == -3// in binary: 11111111 11111111 11111111 11101011 >> 3 ==//            11111111 11111111 11111111 11111101
Source
Long.scala
def>>(x:Long):Long

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.

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.

Attributes

Example

-21 >> 3 == -3// in binary: 11111111 11111111 11111111 11101011 >> 3 ==//            11111111 11111111 11111111 11111101
Source
Long.scala
def>>>(x:Int):Long

Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

Attributes

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

Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

Returns this value bit-shifted right by the specified number of bits, filling the new left bits with zeroes.

Attributes

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:Byte):Long

Returns the bitwise XOR of this value andx.

Returns the bitwise XOR of this value andx.

Attributes

Example

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

Returns the bitwise XOR of this value andx.

Returns the bitwise XOR of this value andx.

Attributes

Example

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

Returns the bitwise XOR of this value andx.

Returns the bitwise XOR of this value andx.

Attributes

Example

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

Returns the bitwise XOR of this value andx.

Returns the bitwise XOR of this value andx.

Attributes

Example

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

Returns the bitwise XOR of this value andx.

Returns the bitwise XOR of this value andx.

Attributes

Example

(0xf0 ^ 0xaa) == 0x5a// in binary:   11110000//            ^ 10101010//              --------//              01011010
Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Attributes

Source
Double.scala
Implicitly added bylong2float

Attributes

Source
Float.scala

Attributes

Source
Long.scala
Implicitly added bylong2double

Returns this value, unmodified.

Returns this value, unmodified.

Attributes

Source
Double.scala
Implicitly added bylong2float

Returns this value, unmodified.

Returns this value, unmodified.

Attributes

Source
Float.scala

Returns this value, unmodified.

Returns this value, unmodified.

Attributes

Source
Long.scala
Implicitly added bylong2double

Returns the negation of this value.

Returns the negation of this value.

Attributes

Source
Double.scala
Implicitly added bylong2float

Returns the negation of this value.

Returns the negation of this value.

Attributes

Source
Float.scala

Returns the negation of this value.

Returns the negation of this value.

Attributes

Source
Long.scala

Returns the bitwise negation of this value.

Returns the bitwise negation of this value.

Attributes

Example

~5 == -6// in binary: ~00000101 ==//             11111010
Source
Long.scala
def|(x:Byte):Long

Returns the bitwise OR of this value andx.

Returns the bitwise OR of this value andx.

Attributes

Example

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

Returns the bitwise OR of this value andx.

Returns the bitwise OR of this value andx.

Attributes

Example

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

Returns the bitwise OR of this value andx.

Returns the bitwise OR of this value andx.

Attributes

Example

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

Returns the bitwise OR of this value andx.

Returns the bitwise OR of this value andx.

Attributes

Example

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

Returns the bitwise OR of this value andx.

Returns the bitwise OR of this value andx.

Attributes

Example

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

Deprecated methods

Implicitly added bylong2double

Attributes

Deprecated
[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`
Source
Double.scala
Implicitly added bylong2float

Attributes

Deprecated
[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`
Source
Float.scala

Attributes

Deprecated
[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`
Source
Long.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp