Float (original) (raw)

scala.Float

See theFloat companion class

Members list

Transform a value type into a boxed reference type.

Value parameters

x

the Float to be boxed

Attributes

Returns

a java.lang.Float offering x as its underlying value.

Source

Float.scala

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 by scala.runtime.BoxesRunTime.unboxToFloat. See src/library/scala/runtime/BoxesRunTime.java.

Value parameters

x

the java.lang.Float to be unboxed.

Attributes

Returns

the Float resulting from calling floatValue() on x

Throws

Source

Float.scala

The largest finite positive number representable as a Float.

The largest finite positive number representable as a Float.

Attributes

Source

Float.scala

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

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 from java.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

In this article