Packages

trait Math extends scala.scalajs.js.Object with StObject

Annotations
@JSType() @native()
Source
Math.scala
Linear Supertypes
StObject, scala.scalajs.js.Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Math
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): scala.Boolean
    Definition Classes
    AnyRef → Any
  4. val E: Double

    The mathematical constant e.

    The mathematical constant e. This is Euler's number, the base of natural logarithms.

  5. val LN10: Double

    The natural logarithm of 10.

  6. val LN2: Double

    The natural logarithm of 2.

  7. val LOG10E: Double

    The base-10 logarithm of e.

  8. val LOG2E: Double

    The base-2 logarithm of e.

  9. val PI: Double

    Pi.

    Pi. This is the ratio of the circumference of a circle to its diameter.

  10. val SQRT1_2: Double

    The square root of 0.5, or, equivalently, one divided by the square root of 2.

  11. val SQRT2: Double

    The square root of 2.

  12. def abs(x: Double): Double

    Returns the absolute value of a number (the value without regard to whether it is positive or negative).

    Returns the absolute value of a number (the value without regard to whether it is positive or negative). For example, the absolute value of -5 is the same as the absolute value of 5.

    x

    A numeric expression for which the absolute value is needed.

  13. def acos(x: Double): Double

    Returns the arc cosine (or inverse cosine) of a number.

    Returns the arc cosine (or inverse cosine) of a number.

    x

    A numeric expression.

  14. def acosh(x: Double): Double

    Returns the inverse hyperbolic cosine of a number.

    Returns the inverse hyperbolic cosine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def asin(x: Double): Double

    Returns the arcsine of a number.

    Returns the arcsine of a number.

    x

    A numeric expression.

  17. def asinh(x: Double): Double

    Returns the inverse hyperbolic sine of a number.

    Returns the inverse hyperbolic sine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  18. def atan(x: Double): Double

    Returns the arctangent of a number.

    Returns the arctangent of a number.

    x

    A numeric expression for which the arctangent is needed.

  19. def atan2(y: Double, x: Double): Double

    Returns the angle (in radians) from the X axis to a point.

    Returns the angle (in radians) from the X axis to a point.

    y

    A numeric expression representing the cartesian y-coordinate.

    x

    A numeric expression representing the cartesian x-coordinate.

  20. def atanh(x: Double): Double

    Returns the inverse hyperbolic tangent of a number.

    Returns the inverse hyperbolic tangent of a number.

    x

    A numeric expression that contains an angle measured in radians.

  21. def cbrt(x: Double): Double

    Returns an implementation-dependent approximation to the cube root of number.

    Returns an implementation-dependent approximation to the cube root of number.

    x

    A numeric expression.

  22. def ceil(x: Double): Double

    Returns the smallest integer greater than or equal to its numeric argument.

    Returns the smallest integer greater than or equal to its numeric argument.

    x

    A numeric expression.

  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  24. def clz32(x: Double): Double

    Returns the number of leading zero bits in the 32-bit binary representation of a number.

    Returns the number of leading zero bits in the 32-bit binary representation of a number.

    x

    A numeric expression.

  25. def cos(x: Double): Double

    Returns the cosine of a number.

    Returns the cosine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  26. def cosh(x: Double): Double

    Returns the hyperbolic cosine of a number.

    Returns the hyperbolic cosine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  27. final def eq(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef → Any
  29. def exp(x: Double): Double

    Returns e (the base of natural logarithms) raised to a power.

    Returns e (the base of natural logarithms) raised to a power.

    x

    A numeric expression representing the power of e.

  30. def expm1(x: Double): Double

    Returns the result of (e^x - 1), which is an implementation-dependent approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e is the base of the natural logarithms).

    Returns the result of (e^x - 1), which is an implementation-dependent approximation to subtracting 1 from the exponential function of x (e raised to the power of x, where e is the base of the natural logarithms).

    x

    A numeric expression.

  31. def floor(x: Double): Double

    Returns the greatest integer less than or equal to its numeric argument.

    Returns the greatest integer less than or equal to its numeric argument.

    x

    A numeric expression.

  32. def fround(x: Double): Double

    Returns the nearest single precision float representation of a number.

    Returns the nearest single precision float representation of a number.

    x

    A numeric expression.

  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  34. def hasOwnProperty(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  36. def hypot(values: Double*): Double

    Returns the square root of the sum of squares of its arguments.

    Returns the square root of the sum of squares of its arguments.

    values

    Values to compute the square root for. If no arguments are passed, the result is +0. If there is only one argument, the result is the absolute value. If any argument is +Infinity or -Infinity, the result is +Infinity. If any argument is NaN, the result is NaN. If all arguments are either +0 or −0, the result is +0.

  37. def imul(x: Double, y: Double): Double

    Returns the result of 32-bit multiplication of two numbers.

    Returns the result of 32-bit multiplication of two numbers.

    x

    First number

    y

    Second number

  38. final def isInstanceOf[T0]: scala.Boolean
    Definition Classes
    Any
  39. def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
    Definition Classes
    Object
  40. def log(x: Double): Double

    Returns the natural logarithm (base e) of a number.

    Returns the natural logarithm (base e) of a number.

    x

    A numeric expression.

  41. def log10(x: Double): Double

    Returns the base 10 logarithm of a number.

    Returns the base 10 logarithm of a number.

    x

    A numeric expression.

  42. def log1p(x: Double): Double

    Returns the natural logarithm of 1 + x.

    Returns the natural logarithm of 1 + x.

    x

    A numeric expression.

  43. def log2(x: Double): Double

    Returns the base 2 logarithm of a number.

    Returns the base 2 logarithm of a number.

    x

    A numeric expression.

  44. def max(values: Double*): Double

    Returns the larger of a set of supplied numeric expressions.

    Returns the larger of a set of supplied numeric expressions.

    values

    Numeric expressions to be evaluated.

  45. def min(values: Double*): Double

    Returns the smaller of a set of supplied numeric expressions.

    Returns the smaller of a set of supplied numeric expressions.

    values

    Numeric expressions to be evaluated.

  46. final def ne(arg0: AnyRef): scala.Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  49. def pow(x: Double, y: Double): Double

    Returns the value of a base expression taken to a specified power.

    Returns the value of a base expression taken to a specified power.

    x

    The base value of the expression.

    y

    The exponent value of the expression.

  50. def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
    Definition Classes
    Object
  51. def random(): Double

    Returns a pseudorandom number between 0 and 1.

  52. def round(x: Double): Double

    Returns a supplied numeric expression rounded to the nearest integer.

    Returns a supplied numeric expression rounded to the nearest integer.

    x

    The value to be rounded to the nearest integer.

  53. def sign(x: Double): Double

    Returns the sign of the x, indicating whether x is positive, negative or zero.

    Returns the sign of the x, indicating whether x is positive, negative or zero.

    x

    The numeric expression to test

  54. def sin(x: Double): Double

    Returns the sine of a number.

    Returns the sine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  55. def sinh(x: Double): Double

    Returns the hyperbolic sine of a number.

    Returns the hyperbolic sine of a number.

    x

    A numeric expression that contains an angle measured in radians.

  56. def sqrt(x: Double): Double

    Returns the square root of a number.

    Returns the square root of a number.

    x

    A numeric expression.

  57. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  58. def tan(x: Double): Double

    Returns the tangent of a number.

    Returns the tangent of a number.

    x

    A numeric expression that contains an angle measured in radians.

  59. def tanh(x: Double): Double

    Returns the hyperbolic tangent of a number.

    Returns the hyperbolic tangent of a number.

    x

    A numeric expression that contains an angle measured in radians.

  60. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  61. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  62. val toStringTag: java.lang.String
    Annotations
    @JSName(js.Symbol.toStringTag)
  63. def trunc(x: Double): Double

    Returns the integral part of the a numeric expression, x, removing any fractional digits.

    Returns the integral part of the a numeric expression, x, removing any fractional digits. If x is already an integer, the result is x.

    x

    A numeric expression.

  64. def valueOf(): Any
    Definition Classes
    Object
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from scala.scalajs.js.Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped