The double
value that is closer than any other to
e
, the base of the natural logarithms.
The smallest difference between two values of scala.
The smallest difference between two values of scala.
The greatest possible value for scala.
The greatest possible value for scala.
The smallest possible value for scala.
The smallest possible value for scala.
Negative infinity of type scala.
Negative infinity of type scala.
A value of type scala.
A value of type scala.
Positive infinity of type scala.
Positive infinity of type scala.
The double
value that is closer than any other to
pi
, the ratio of the circumference of a circle to its
diameter.
Converts rectangular coordinates (x, y)
to polar
(r, theta)
.
Returns Euler's number e
raised to the power of a
double
value.
Returns the value of the first argument raised to the power of the second argument.
Returns a double
value with a positive sign, greater than
or equal to 0.
def
rint(x: Double): Double
Returns the double
value that is closest in value to the
argument and is equal to a mathematical integer.
def
round(x: Double): Long
def
round(x: Float): Int
Returns the closest long
to the argument.
def
signum(x: Int): Int
def
signum(x: Long): Long
def
signum(x: Float): Float
def
signum(x: Double): Double
def
sin(x: Double): Double
def
sqrt(x: Double): Double
def
tan(x: Double): Double
def
toDegrees(x: Double): Double
Converts an angle measured in radians to an approximately equivalent
angle measured in degrees.
def
toRadians(x: Double): Double
Converts an angle measured in degrees to an approximately equivalent
angle measured in radians.
The object
Math
contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.deprecated:
use scala.math package instead