double

object double
class Object
trait Matchable
class Any
double.type

Type members

Types

type %[X <: Double, Y <: Double] <: Double

Remainder of the division of X by Y.

Remainder of the division of X by Y.

import compiletime.ops.double._
val mod: 5.0 % 2.0 = 1.0
Source:
double.scala
type *[X <: Double, Y <: Double] <: Double

Multiplication of two Double singleton types.

Multiplication of two Double singleton types.

import compiletime.ops.double._
val mul: 4.0 * 2.0 = 8.0
Source:
double.scala
type +[X <: Double, Y <: Double] <: Double

Addition of two Double singleton types.

Addition of two Double singleton types.

import compiletime.ops.double._
val sum: 2.0 + 2.0 = 4.0
Source:
double.scala
type -[X <: Double, Y <: Double] <: Double

Subtraction of two Double singleton types.

Subtraction of two Double singleton types.

import compiletime.ops.double._
val sub: 4.0 - 2.0 = 2.0
Source:
double.scala
type /[X <: Double, Y <: Double] <: Double

Integer division of two Double singleton types.

Integer division of two Double singleton types.

import compiletime.ops.double._
val div: 5.0 / 2.0 = 2.5
Source:
double.scala
type <[X <: Double, Y <: Double] <: Boolean

Less-than comparison of two Double singleton types.

Less-than comparison of two Double singleton types.

import compiletime.ops.double._
val lt1: 4.0 < 2.0 = false
val lt2: 2.0 < 4.0 = true
Source:
double.scala
type <=[X <: Double, Y <: Double] <: Boolean

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

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

import compiletime.ops.double._
val lt1: 4.0 <= 2.0 = false
val lt2: 2.0 <= 2.0 = true
Source:
double.scala
type >[X <: Double, Y <: Double] <: Boolean

Greater-than comparison of two Double singleton types.

Greater-than comparison of two Double singleton types.

import compiletime.ops.double._
val gt1: 4.0 > 2.0 = true
val gt2: 2.0 > 2.0 = false
Source:
double.scala
type >=[X <: Double, Y <: Double] <: Boolean

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

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

import compiletime.ops.double._
val ge1: 4.0 >= 2.0 = true
val ge2: 2.0 >= 3.0 = false
Source:
double.scala
type Abs[X <: Double] <: Double

Absolute value of an Double singleton type.

Absolute value of an Double singleton type.

import compiletime.ops.double._
val abs: Abs[-1.0] = 1.0
Source:
double.scala
type Max[X <: Double, Y <: Double] <: Double

Maximum of two Double singleton types.

Maximum of two Double singleton types.

import compiletime.ops.double._
val max: Max[-1.0, 1.0] = 1.0
Source:
double.scala
type Min[X <: Double, Y <: Double] <: Double

Minimum of two Double singleton types.

Minimum of two Double singleton types.

import compiletime.ops.double._
val min: Min[-1.0, 1.0] = -1.0
Source:
double.scala
type Negate[X <: Double] <: Double

Negation of an Double singleton type.

Negation of an Double singleton type.

import compiletime.ops.double._
val neg1: Negate[-1.0] = 1.0
val neg2: Negate[1.0] = -1.0
Source:
double.scala
type ToFloat[X <: Double] <: Float

Float conversion of a Double singleton type.

Float conversion of a Double singleton type.

import compiletime.ops.double._
val x: ToFloat[1.0] = 1.0f
Source:
double.scala
type ToInt[X <: Double] <: Int

Int conversion of a Double singleton type.

Int conversion of a Double singleton type.

import compiletime.ops.double._
val x: ToInt[1.0] = 1
Source:
double.scala
type ToLong[X <: Double] <: Long

Long conversion of a Double singleton type.

Long conversion of a Double singleton type.

import compiletime.ops.double._
val x: ToLong[1.0] = 1L
Source:
double.scala