Scala Standard Library 2.13.15 - scala.math (original) (raw)

package math

Ordering

  1. Grouped

  2. Alphabetic

  3. By Inheritance

  4. Hide All

  5. Show All

Visibility

  1. Public
  2. Protected

Type Members

  1. final class BigDecimal extends ScalaNumber with ScalaNumericConversions with Serializable with Ordered[BigDecimal]
  2. final class BigInt extends ScalaNumber with ScalaNumericConversions with Serializable with Ordered[BigInt]
  3. trait Equiv[T] extends Serializable
  4. trait Fractional[T] extends Numeric[T]
  5. trait Integral[T] extends Numeric[T]
  6. trait LowPriorityEquiv extends AnyRef
  7. trait LowPriorityOrderingImplicits extends AnyRef
  8. trait Numeric[T] extends Ordering[T]
  9. trait Ordered[A] extends Comparable[A]
  10. trait Ordering[T] extends Comparator[T] with PartialOrdering[T] with Serializable
  11. trait PartialOrdering[T] extends Equiv[T]
  12. trait PartiallyOrdered[+A] extends Any
  13. trait ScalaNumericAnyConversions extends Any
  14. trait ScalaNumericConversions extends ScalaNumber with ScalaNumericAnyConversions

Value Members

  1. final val E: Double(2.718281828459045)
  2. def IEEEremainder(x: Double, y: Double): Double
  3. final val Pi: Double(3.141592653589793)
  4. def abs(x: Double): Double
  5. def abs(x: Float): Float
  6. def abs(x: Long): Long
  7. def abs(x: Int): Int
  8. def acos(x: Double): Double
  9. def addExact(x: Long, y: Long): Long
  10. def addExact(x: Int, y: Int): Int
  11. def asin(x: Double): Double
  12. def atan(x: Double): Double
  13. def atan2(y: Double, x: Double): Double
  14. def cbrt(x: Double): Double
  15. def ceil(x: Double): Double
  16. def copySign(magnitude: Float, sign: Float): Float
  17. def copySign(magnitude: Double, sign: Double): Double
  18. def cos(x: Double): Double
  19. def cosh(x: Double): Double
  20. def decrementExact(x: Long): Long
  21. def decrementExact(x: Int): Int
  22. def exp(x: Double): Double
  23. def expm1(x: Double): Double
  24. def floor(x: Double): Double
  25. def floorDiv(x: Long, y: Long): Long
  26. def floorDiv(x: Int, y: Int): Int
  27. def floorMod(x: Long, y: Long): Long
  28. def floorMod(x: Int, y: Int): Int
  29. def getExponent(d: Double): Int
  30. def getExponent(f: Float): Int
  31. def hypot(x: Double, y: Double): Double
  32. def incrementExact(x: Long): Long
  33. def incrementExact(x: Int): Int
  34. def log(x: Double): Double
  35. def log10(x: Double): Double
  36. def log1p(x: Double): Double
  37. def max(x: Double, y: Double): Double
  38. def max(x: Float, y: Float): Float
  39. def max(x: Long, y: Long): Long
  40. def max(x: Int, y: Int): Int
  41. def min(x: Double, y: Double): Double
  42. def min(x: Float, y: Float): Float
  43. def min(x: Long, y: Long): Long
  44. def min(x: Int, y: Int): Int
  45. def multiplyExact(x: Long, y: Long): Long
  46. def multiplyExact(x: Int, y: Int): Int
  47. def negateExact(x: Long): Long
  48. def negateExact(x: Int): Int
  49. def nextAfter(start: Float, direction: Double): Float
  50. def nextAfter(start: Double, direction: Double): Double
  51. def nextDown(f: Float): Float
  52. def nextDown(d: Double): Double
  53. def nextUp(f: Float): Float
  54. def nextUp(d: Double): Double
  55. def pow(x: Double, y: Double): Double
  56. def random(): Double
  57. def rint(x: Double): Double
  58. def round(x: Double): Long
  59. def round(x: Float): Int
  60. def scalb(f: Float, scaleFactor: Int): Float
  61. def scalb(d: Double, scaleFactor: Int): Double
  62. def signum(x: Double): Double
  63. def signum(x: Float): Float
  64. def signum(x: Long): Long
  65. def signum(x: Int): Int
  66. def sin(x: Double): Double
  67. def sinh(x: Double): Double
  68. def sqrt(x: Double): Double
  69. def subtractExact(x: Long, y: Long): Long
  70. def subtractExact(x: Int, y: Int): Int
  71. def tan(x: Double): Double
  72. def tanh(x: Double): Double
  73. def toDegrees(x: Double): Double
  74. def toIntExact(x: Long): Int
  75. def toRadians(x: Double): Double
  76. def ulp(x: Float): Float
  77. def ulp(x: Double): Double
  78. object BigDecimal extends java.io.Serializable
  79. object BigInt extends java.io.Serializable
  80. object Equiv extends LowPriorityEquiv with java.io.Serializable
  81. object Fractional extends java.io.Serializable
  82. object Integral extends java.io.Serializable
  83. object Numeric extends java.io.Serializable
  84. object Ordered
  85. object Ordering extends LowPriorityOrderingImplicits with java.io.Serializable
  86. object PartialOrdering extends java.io.Serializable

Deprecated Value Members

  1. def round(x: Long): Long

Mathematical Constants

Minimum and Maximum

Rounding

Scaling

Exponential and Logarithmic

Trigonometric

Angular Measurement Conversion

Hyperbolic

Absolute Values

Signs

Root Extraction

Polar Coordinates

Unit of Least Precision

Pseudo Random Number Generation

Exact Arithmetic

Modulus and Quotient

Adjacent Floats

Ungrouped