O object

int

extends Object with Serializable

Supertypes

Object, Serializable

Members

type 

%

 = Nothing <: Int

Remainder of the division of X by Y.

Remainder of the division of X by Y.

val mod: 5 % 2 = 1
type 

*

 = Nothing <: Int

Multiplication of two Int singleton types.

Multiplication of two Int singleton types.

val mul: 4 * 2 = 8
type 

+

 = Nothing <: Int

Addition of two Int singleton types.

Addition of two Int singleton types.

val sum: 2 + 2 = 4
type 

-

 = Nothing <: Int

Subtraction of two Int singleton types.

Subtraction of two Int singleton types.

val sub: 4 - 2 = 2
type 

/

 = Nothing <: Int

Integer division of two Int singleton types.

Integer division of two Int singleton types.

val div: 5 / 2 = 2
type 

<

 = Nothing <: Boolean

Less-than comparison of two Int singleton types.

Less-than comparison of two Int singleton types.

val lt1: 4 < 2 = false
val lt2: 2 < 4 = true
type 

<=

 = Nothing <: Boolean

Less-or-equal comparison of two Int singleton types.

Less-or-equal comparison of two Int singleton types.

val lt1: 4 <= 2 = false
val lt2: 2 <= 2 = true
type 

>

 = Nothing <: Boolean

Greater-than comparison of two Int singleton types.

Greater-than comparison of two Int singleton types.

val gt1: 4 > 2 = true
val gt2: 2 > 2 = false
type 

>=

 = Nothing <: Boolean

Greater-or-equal comparison of two Int singleton types.

Greater-or-equal comparison of two Int singleton types.

val ge1: 4 >= 2 = true
val ge2: 2 >= 3 = false
type 

Abs

 = Nothing <: Int

Absolute value of an Int singleton type.

Absolute value of an Int singleton type.

val abs: Abs[-1] = 1
type 

Max

 = Nothing <: Int

Maximum of two Int singleton types.

Maximum of two Int singleton types.

val abs: Abs[-1] = 1
type 

Min

 = Nothing <: Int

Minimum of two Int singleton types.

Minimum of two Int singleton types.

val min: Min[-1, 1] = -1
type 

Negate

 = Nothing <: Int

Negation of an Int singleton type.

Negation of an Int singleton type.

val neg1: Neg[-1] = 1
val neg2: Neg[1] = -1
type 

ToString

 = Nothing <: String

String conversion of an Int singleton type.

String conversion of an Int singleton type.

val abs: ToString[1] = "1"