Test two objects for inequality.
Test two objects for inequality.
true
if !(this == that), false otherwise.
Equivalent to x.hashCode
except for boxed numeric types.
Equivalent to x.hashCode
except for boxed numeric types.
For numerics, it returns a hash value which is consistent
with value equality: if two value type instances compare
as true, then ## will produce the same hash value for each
of them.
a hash value consistent with ==
Test two objects for equality.
Test two objects for equality.
true
if the receiver object is equivalent to the argument; false
otherwise.
The double
value that is closer than any other to
e
, the base of the natural logarithms.
The double
value that is closer than any other to
e
, the base of the natural logarithms.
The double
value that is closer than any other to
pi
, the ratio of the circumference of a circle to its
diameter.
The double
value that is closer than any other to
pi
, the ratio of the circumference of a circle to its
diameter.
Cast the receiver object to be of type T0
.
Cast the receiver object to be of type T0
.
Note that the success of a cast at runtime is modulo Scala's erasure semantics.
Therefore the expression 1.asInstanceOf[String]
will throw a ClassCastException
at
runtime, while the expression List(1).asInstanceOf[List[String]]
will not.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the requested type.
the receiver object.
Converts rectangular coordinates (x, y)
to polar
(r, theta)
.
Converts rectangular coordinates (x, y)
to polar
(r, theta)
.
the abscissa coordinate
the ordinate coordinate
the theta component of the point (r, theta)
in polar coordinates that corresponds to the point
(x, y)
in Cartesian coordinates.
Create a copy of the receiver object.
Tests whether the argument (arg0
) is a reference to the receiver object (this
).
Tests whether the argument (arg0
) is a reference to the receiver object (this
).
The eq
method implements an equivalence relation on
non-null instances of AnyRef
, and has three additional properties:
x
and y
of type AnyRef
, multiple invocations of
x.eq(y)
consistently returns true
or consistently returns false
.x
of type AnyRef
, x.eq(null)
and null.eq(x)
returns false
.null.eq(null)
returns true
. When overriding the equals
or hashCode
methods, it is important to ensure that their behavior is
consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2
), they
should be equal to each other (o1 == o2
) and they should hash to the same value (o1.hashCode == o2.hashCode
).
true
if the argument is a reference to the receiver object; false
otherwise.
The equality method for reference types.
Returns Euler's number e
raised to the power of a
double
value.
Returns Euler's number e
raised to the power of a
double
value.
the exponent to raise e
to.
the value e^{a}
, where e
is the base of the natural logarithms.
Called by the garbage collector on the receiver object when there are no more references to the object.
Called by the garbage collector on the receiver object when there are no more references to the object.
The details of when and if the finalize
method is invoked, as
well as the interaction between finalize
and non-local returns
and exceptions, are all platform dependent.
A representation that corresponds to the dynamic class of the receiver object.
A representation that corresponds to the dynamic class of the receiver object.
The nature of the representation is platform dependent.
a representation that corresponds to the dynamic class of the receiver object.
The hashCode method for reference types.
Test whether the dynamic type of the receiver object is T0
.
Test whether the dynamic type of the receiver object is T0
.
Note that the result of the test is modulo Scala's erasure semantics.
Therefore the expression 1.isInstanceOf[String]
will return false
, while the
expression List(1).isInstanceOf[List[String]]
will return true
.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the specified type.
true
if the receiver object is an instance of erasure of type T0
; false
otherwise.
Equivalent to !(this eq that)
.
Equivalent to !(this eq that)
.
true
if the argument is not a reference to the receiver object; false
otherwise.
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
Returns the value of the first argument raised to the power of the second argument.
Returns the value of the first argument raised to the power of the second argument.
the base.
the exponent.
the value x^{y}
.
Returns a double
value with a positive sign, greater than
or equal to 0.0
and less than 1.0
.
Returns a double
value with a positive sign, greater than
or equal to 0.0
and less than 1.0
.
Returns the double
value that is closest in value to the
argument and is equal to a mathematical integer.
Returns the double
value that is closest in value to the
argument and is equal to a mathematical integer.
a double
value
the closest floating-point value to a that is equal to a mathematical integer.
Returns the closest long
to the argument.
Returns the closest long
to the argument.
a floating-point value to be rounded to a long
.
the value of the argument rounded to the nearest
long
value.
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.
angle, in radians
the measurement of the angle x
in degrees.
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.
an angle, in degrees
the measurement of the angle x
in radians.
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.
The smallest difference between two values of scala.
The smallest difference between two values of scala.Double.
Use scala.Double.MinPositiveValue instead
The smallest difference between two values of scala.
The smallest difference between two values of scala.Float.
Use scala.Float.MinPositiveValue instead
Use scala.Byte.MaxValue instead
Use scala.Char.MaxValue instead
The greatest possible value for scala.
The greatest possible value for scala.Double.
Use scala.Double.MaxValue instead
The greatest possible value for scala.
The greatest possible value for scala.Float.
Use scala.Float.MaxValue instead
Use scala.Int.MaxValue instead
Use scala.Long.MaxValue instead
Use scala.Short.MaxValue instead
Use scala.Byte.MinValue instead
Use scala.Char.MinValue instead
The smallest possible value for scala.
The smallest possible value for scala.Double.
Use scala.Double.MinValue instead
The smallest possible value for scala.
The smallest possible value for scala.Float.
Use scala.Float.MinValue instead
Use scala.Int.MinValue instead
Use scala.Long.MinValue instead
Use scala.Short.MinValue instead
Negative infinity of type scala.
Negative infinity of type scala.Double.
Use scala.Double.NegativeInfinity instead
Negative infinity of type scala.
Negative infinity of type scala.Float.
Use scala.Float.NegativeInfinity instead
A value of type scala.
A value of type scala.Double that represents no number.
Use scala.Double.NaN instead
A value of type scala.
A value of type scala.Float that represents no number.
Use scala.Float.NaN instead
Positive infinity of type scala.
Positive infinity of type scala.Double.
Use scala.Double.PositiveInfinity instead
Positive infinity of type scala.
Positive infinity of type scala.Float.
Use scala.Float.PositiveInfinity instead
The object
Math
contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.use the scala.math package object instead. (Example package object usage: scala.math.Pi )