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/float

float

scala.compiletime.ops.float
objectfloat

Attributes

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

Members list

Type members

Types

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

Remainder of the division ofX byY.

Remainder of the division ofX byY.

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

Attributes

Source
float.scala
infixtype*[X <:Float,Y <:Float] <:Float

Multiplication of twoFloat singleton types.

Multiplication of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype+[X <:Float,Y <:Float] <:Float

Addition of twoFloat singleton types.

Addition of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype-[X <:Float,Y <:Float] <:Float

Subtraction of twoFloat singleton types.

Subtraction of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype/[X <:Float,Y <:Float] <:Float

Integer division of twoFloat singleton types.

Integer division of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype<[X <:Float,Y <:Float] <:Boolean

Less-than comparison of twoFloat singleton types.

Less-than comparison of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype<=[X <:Float,Y <:Float] <:Boolean

Less-or-equal comparison of twoFloat singleton types.

Less-or-equal comparison of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype>[X <:Float,Y <:Float] <:Boolean

Greater-than comparison of twoFloat singleton types.

Greater-than comparison of twoFloat singleton types.

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

Attributes

Source
float.scala
infixtype>=[X <:Float,Y <:Float] <:Boolean

Greater-or-equal comparison of twoFloat singleton types.

Greater-or-equal comparison of twoFloat singleton types.

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

Attributes

Source
float.scala
typeAbs[X <:Float] <:Float

Absolute value of anFloat singleton type.

Absolute value of anFloat singleton type.

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

Attributes

Source
float.scala
typeMax[X <:Float,Y <:Float] <:Float

Maximum of twoFloat singleton types.

Maximum of twoFloat singleton types.

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

Attributes

Source
float.scala
typeMin[X <:Float,Y <:Float] <:Float

Minimum of twoFloat singleton types.

Minimum of twoFloat singleton types.

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

Attributes

Source
float.scala
typeNegate[X <:Float] <:Float

Negation of anFloat singleton type.

Negation of anFloat singleton type.

import compiletime.ops.float.*val neg1: Negate[-1.0f] = 1.0fval neg2: Negate[1.0f] = -1.0f

Attributes

Source
float.scala
typeToDouble[X <:Float] <:Double

Double conversion of aFloat singleton type.

Double conversion of aFloat singleton type.

import compiletime.ops.float.*val x: ToDouble[1.0f] = 1.0

Attributes

Source
float.scala
typeToInt[X <:Float] <:Int

Int conversion of aFloat singleton type.

Int conversion of aFloat singleton type.

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

Attributes

Source
float.scala
typeToLong[X <:Float] <:Long

Long conversion of aFloat singleton type.

Long conversion of aFloat singleton type.

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

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp