Attributes
- Companion
- class
- Source
- Float.scala
- Graph
-
- Supertypes
- Self type
-
Float.type
Members list
Value members
Concrete methods
Transforms a value type into a boxed reference type.
Transforms a value type into a boxed reference type.
Runtime implementation determined by scala.runtime.BoxesRunTime.boxToFloat. See src/library/scala/runtime/BoxesRunTime.java.
Value parameters
- x
-
the Float to be boxed
Attributes
- Returns
-
a java.lang.Float offering
xas 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
Transforms 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.
Transforms 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
-
ClassCastException
if the argument is not a java.lang.Float
- Source
- Float.scala
Concrete fields
The largest finite positive number representable as a Float.
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. 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.
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
Attributes
- Source
- Float.scala
Attributes
- Source
- Float.scala
Attributes
- Source
- Float.scala
Extensions
Deprecated extensions
Returns the absolute value of this.
Returns the smallest integer greater or equal to this.
Compares this to that according to the standard total ordering.
Compares this to that according to the standard total ordering.
Returns:
- a positive value if
this > that - a negative value if
this < that 0ifthis == that
Special cases for this method:
0.0is considered greater than-0.0NaNis considered greater than all other values, but equal to itself
Attributes
- Source
- Float.scala
Returns the largest integer smaller or equal to this.
Returns true iff this is a finite value, i.e., not an infinity nor NaN.
Returns true iff this is a finite value, i.e., not an infinity nor NaN.
Attributes
- Source
- Float.scala
Returns true iff this is PositiveInfinity or NegativeInfinity.
Returns true iff this is a NaN value.
Returns true iff this is NegativeInfinity.
Returns true iff this is PositiveInfinity.
Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Float.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Float.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Float.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Float.scala
Returns '''true''' if this number is finite and has no decimal component.
Returns '''true''' if this number is finite and has no decimal component.
Attributes
- Source
- Float.scala
Returns this if this > that or that otherwise.
Returns this if this < that or that otherwise.
Returns the closest Int to this.
Returns the sign of this.
Returns the sign of this.
1.0fifthis > 0.0f;-1.0fifthis < 0.0f;thisotherwise (for zeros andNaN).
Attributes
- Source
- Float.scala
Returns the signum of this.
Returns the signum of this.
Attributes
- Deprecated
-
[Since version 2.13.0]signum does not handle -0.0f or Float.NaN; use `sign` method instead - Source
- Float.scala
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Attributes
- Returns
-
the measurement of the angle x in degrees.
- Source
- Float.scala
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Attributes
- Returns
-
the measurement of the angle x in radians.
- Source
- Float.scala
Implicits
Implicits
Attributes
- Source
- Float.scala