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

Float

scala.Float
See theFloat companion class
objectFloat

Attributes

Companion
class
Source
Float.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Float.type

Members list

Value members

Concrete methods

Transform a value type into a boxed reference type.

Transform a value type into a boxed reference type.

Runtime implementation determined byscala.runtime.BoxesRunTime.boxToFloat. Seesrc/library/scala/runtime/BoxesRunTime.java.

Value parameters

x

the Float to be boxed

Attributes

Returns

a java.lang.Float offeringx as its underlying value.

Source
Float.scala
overridedeftoString:String

The String representation of the scala.Float companion object.

The String representation of the scala.Float companion object.

Attributes

Definition Classes
Source
Float.scala

Transform a boxed type into a value type.

Transform a boxed type into a value type. Note that this method is not typesafe: it accepts any Object, but will throw an exception if the argument is not a java.lang.Float.

Runtime implementation determined byscala.runtime.BoxesRunTime.unboxToFloat. Seesrc/library/scala/runtime/BoxesRunTime.java.

Value parameters

x

the java.lang.Float to be unboxed.

Attributes

Returns

the Float resulting from calling floatValue() onx

Throws

ClassCastException if the argument is not a java.lang.Float

Source
Float.scala

Concrete fields

finalvalMaxValue: 3.4028235E38f

The largest finite positive number representable as a Float.

The largest finite positive number representable as a Float.

Attributes

Source
Float.scala
finalvalMinPositiveValue: 1.4E-45f

The smallest positive value greater than 0.0f which is representable as a Float.

The smallest positive value greater than 0.0f which is representable as a Float.

Attributes

Source
Float.scala
finalvalMinValue: -3.4028235E38f

The negative number with the greatest (finite) absolute value which is representable by a Float.

The negative number with the greatest (finite) absolute value which is representable by a Float. Note that it differs fromjava.lang.Float.MIN_VALUE, which is the smallest positive value representable by a Float. In Scala that number is called Float.MinPositiveValue.

Attributes

Source
Float.scala
finalvalNaN: NaNf

Attributes

Source
Float.scala
finalvalNegativeInfinity: -Infinityf

Attributes

Source
Float.scala
finalvalPositiveInfinity: Infinityf

Attributes

Source
Float.scala

Implicits

Implicits

implicitdeffloat2double(x:Float):Double

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