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/scala.compiletime/scala.compiletime.ops/double

double

scala.compiletime.ops.double
objectdouble

Attributes

Source
double.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
double.type

Members list

Type members

Types

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

Remainder of the division ofX byY.

Remainder of the division ofX byY.

import compiletime.ops.double.*val mod: 5.0 % 2.0 = 1.0

Attributes

Source
double.scala
infixtype*[X <:Double,Y <:Double] <:Double

Multiplication of twoDouble singleton types.

Multiplication of twoDouble singleton types.

import compiletime.ops.double.*val mul: 4.0 * 2.0 = 8.0

Attributes

Source
double.scala
infixtype+[X <:Double,Y <:Double] <:Double

Addition of twoDouble singleton types.

Addition of twoDouble singleton types.

import compiletime.ops.double.*val sum: 2.0 + 2.0 = 4.0

Attributes

Source
double.scala
infixtype-[X <:Double,Y <:Double] <:Double

Subtraction of twoDouble singleton types.

Subtraction of twoDouble singleton types.

import compiletime.ops.double.*val sub: 4.0 - 2.0 = 2.0

Attributes

Source
double.scala
infixtype/[X <:Double,Y <:Double] <:Double

Integer division of twoDouble singleton types.

Integer division of twoDouble singleton types.

import compiletime.ops.double.*val div: 5.0 / 2.0 = 2.5

Attributes

Source
double.scala
infixtype<[X <:Double,Y <:Double] <:Boolean

Less-than comparison of twoDouble singleton types.

Less-than comparison of twoDouble singleton types.

import compiletime.ops.double.*val lt1: 4.0 < 2.0 = falseval lt2: 2.0 < 4.0 = true

Attributes

Source
double.scala
infixtype<=[X <:Double,Y <:Double] <:Boolean

Less-or-equal comparison of twoDouble singleton types.

Less-or-equal comparison of twoDouble singleton types.

import compiletime.ops.double.*val lt1: 4.0 <= 2.0 = falseval lt2: 2.0 <= 2.0 = true

Attributes

Source
double.scala
infixtype>[X <:Double,Y <:Double] <:Boolean

Greater-than comparison of twoDouble singleton types.

Greater-than comparison of twoDouble singleton types.

import compiletime.ops.double.*val gt1: 4.0 > 2.0 = trueval gt2: 2.0 > 2.0 = false

Attributes

Source
double.scala
infixtype>=[X <:Double,Y <:Double] <:Boolean

Greater-or-equal comparison of twoDouble singleton types.

Greater-or-equal comparison of twoDouble singleton types.

import compiletime.ops.double.*val ge1: 4.0 >= 2.0 = trueval ge2: 2.0 >= 3.0 = false

Attributes

Source
double.scala
infixtypeAbs[X <:Double] <:Double

Absolute value of anDouble singleton type.

Absolute value of anDouble singleton type.

import compiletime.ops.double.*val abs: Abs[-1.0] = 1.0

Attributes

Source
double.scala
typeMax[X <:Double,Y <:Double] <:Double

Maximum of twoDouble singleton types.

Maximum of twoDouble singleton types.

import compiletime.ops.double.*val max: Max[-1.0, 1.0] = 1.0

Attributes

Source
double.scala
typeMin[X <:Double,Y <:Double] <:Double

Minimum of twoDouble singleton types.

Minimum of twoDouble singleton types.

import compiletime.ops.double.*val min: Min[-1.0, 1.0] = -1.0

Attributes

Source
double.scala
typeNegate[X <:Double] <:Double

Negation of anDouble singleton type.

Negation of anDouble singleton type.

import compiletime.ops.double.*val neg1: Negate[-1.0] = 1.0val neg2: Negate[1.0] = -1.0

Attributes

Source
double.scala
typeToFloat[X <:Double] <:Float

Float conversion of aDouble singleton type.

Float conversion of aDouble singleton type.

import compiletime.ops.double.*val x: ToFloat[1.0] = 1.0f

Attributes

Source
double.scala
typeToInt[X <:Double] <:Int

Int conversion of aDouble singleton type.

Int conversion of aDouble singleton type.

import compiletime.ops.double.*val x: ToInt[1.0] = 1

Attributes

Source
double.scala
typeToLong[X <:Double] <:Long

Long conversion of aDouble singleton type.

Long conversion of aDouble singleton type.

import compiletime.ops.double.*val x: ToLong[1.0] = 1L

Attributes

Source
double.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp