float

class Object
trait Matchable
class Any
float.type

Type members

Types

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

Remainder of the division of X by Y.

Remainder of the division of X by Y.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val mod: 5.0f % 2.0f = 1.0f
}
Source:
float.scala
type *[X <: Float, Y <: Float] <: Float

Multiplication of two Float singleton types.

Multiplication of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val mul: 4.0f * 2.0f = 8.0f
}
Source:
float.scala
type +[X <: Float, Y <: Float] <: Float

Addition of two Float singleton types.

Addition of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val sum: 2.0f + 2.0f = 4.0f
}
Source:
float.scala
type -[X <: Float, Y <: Float] <: Float

Subtraction of two Float singleton types.

Subtraction of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val sub: 4.0f - 2.0f = 2.0f
}
Source:
float.scala
type /[X <: Float, Y <: Float] <: Float

Integer division of two Float singleton types.

Integer division of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val div: 5.0f / 2.0f = 2.5f
}
Source:
float.scala
type <[X <: Float, Y <: Float] <: Boolean

Less-than comparison of two Float singleton types.

Less-than comparison of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val lt1: 4.0f < 2.0f = false
  val lt2: 2.0f < 4.0f = true
}
Source:
float.scala
type <=[X <: Float, Y <: Float] <: Boolean

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

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

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val lt1: 4.0f <= 2.0f = false
  val lt2: 2.0f <= 2.0f = true
}
Source:
float.scala
type >[X <: Float, Y <: Float] <: Boolean

Greater-than comparison of two Float singleton types.

Greater-than comparison of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val gt1: 4.0f > 2.0f = true
  val gt2: 2.0f > 2.0f = false
}
Source:
float.scala
type >=[X <: Float, Y <: Float] <: Boolean

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

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

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val ge1: 4.0f >= 2.0f = true
  val ge2: 2.0f >= 3.0f = false
}
Source:
float.scala
type Abs[X <: Float] <: Float

Absolute value of an Float singleton type.

Absolute value of an Float singleton type.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val abs: Abs[-1.0f] = 1.0f
}
Source:
float.scala
type Max[X <: Float, Y <: Float] <: Float

Maximum of two Float singleton types.

Maximum of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val max: Max[-1.0f, 1.0f] = 1.0f
}
Source:
float.scala
type Min[X <: Float, Y <: Float] <: Float

Minimum of two Float singleton types.

Minimum of two Float singleton types.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val min: Min[-1.0f, 1.0f] = -1.0f
}
Source:
float.scala
type Negate[X <: Float] <: Float

Negation of an Float singleton type.

Negation of an Float singleton type.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val neg1: Negate[-1.0f] = 1.0f
  val neg2: Negate[1.0f] = -1.0f
}
Source:
float.scala
type ToDouble[X <: Float] <: Double

Double conversion of a Float singleton type.

Double conversion of a Float singleton type.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val x: ToDouble[1.0f] = 1.0
}
Source:
float.scala
type ToInt[X <: Float] <: Int

Int conversion of a Float singleton type.

Int conversion of a Float singleton type.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val x: ToInt[1.0f] = 1
}
Source:
float.scala
type ToLong[X <: Float] <: Long

Long conversion of a Float singleton type.

Long conversion of a Float singleton type.

package scala.compiletime.ops
trait Snippet0 { self: float.type =>
  val x: ToLong[1.0f] = 1L
}
Source:
float.scala