scala.scalajs.js

Number

sealed trait Number extends Any

Primitive JavaScript number.

Annotations
@RawJSType()
Linear Supertypes
Any, AnyRef, scala.Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Number
  2. Any
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def %(that: Dynamic): Number

  2. abstract def %(that: Number): Number

  3. abstract def &(that: Dynamic): Number

  4. abstract def &(that: Number): Number

  5. abstract def *(that: Dynamic): Number

  6. abstract def *(that: Number): Number

  7. abstract def +(that: Dynamic): Dynamic

  8. abstract def +(that: Number): Number

  9. abstract def -(that: Dynamic): Number

  10. abstract def -(that: Number): Number

  11. abstract def /(that: Dynamic): Number

  12. abstract def /(that: Number): Number

  13. abstract def <(that: Dynamic): Boolean

  14. abstract def <(that: Number): Boolean

  15. abstract def <<(that: Dynamic): Number

  16. abstract def <<(that: Number): Number

  17. abstract def <=(that: Dynamic): Boolean

  18. abstract def <=(that: Number): Boolean

  19. abstract def >(that: Dynamic): Boolean

  20. abstract def >(that: Number): Boolean

  21. abstract def >=(that: Dynamic): Boolean

  22. abstract def >=(that: Number): Boolean

  23. abstract def >>(that: Dynamic): Number

  24. abstract def >>(that: Number): Number

  25. abstract def >>>(that: Dynamic): Number

  26. abstract def >>>(that: Number): Number

  27. abstract def ^(that: Dynamic): Number

  28. abstract def ^(that: Number): Number

  29. abstract def unary_+(): Number

  30. abstract def unary_-(): Number

  31. abstract def unary_~(): Number

  32. abstract def |(that: Dynamic): Number

  33. abstract def |(that: Number): Number

Concrete Value Members

  1. final def !=(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(that: String): String

    Definition Classes
    Any
  4. final def ==(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): scala.Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: scala.Boolean

    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): scala.Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  17. def toExponential(): String

  18. def toExponential(fractionDigits: Number): String

    Returns a string representing a Number object in exponential notation with one digit before the decimal point, rounded to fractionDigits digits after the decimal point.

    Returns a string representing a Number object in exponential notation with one digit before the decimal point, rounded to fractionDigits digits after the decimal point. If the fractionDigits argument is omitted, the number of digits after the decimal point defaults to the number of digits necessary to represent the value uniquely.

    If a number has more digits that requested by the fractionDigits parameter, the number is rounded to the nearest number represented by fractionDigits digits. See the discussion of rounding in the description of the toFixed() method, which also applies to toExponential().

    MDN

  19. def toFixed(): String

  20. def toFixed(fractionDigits: Number): String

    Returns a string representation of number that does not use exponential notation and has exactly digits digits after the decimal place.

    Returns a string representation of number that does not use exponential notation and has exactly digits digits after the decimal place. The number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length. If number is greater than 1e+21, this method simply calls Number.prototype.toString() and returns a string in exponential notation.

    MDN

  21. def toPrecision(): String

  22. def toPrecision(precision: Number): String

    Returns a string representing a Number object in fixed-point or exponential notation rounded to precision significant digits.

    Returns a string representing a Number object in fixed-point or exponential notation rounded to precision significant digits. See the discussion of rounding in the description of the Number.prototype.toFixed() method, which also applies to toPrecision.

    If the precision argument is omitted, behaves as Number.prototype.toString(). If it is a non-integer value, it is rounded to the nearest integer.

    MDN

  23. def toString(radix: Number): String

  24. def toString(): java.lang.String

    Definition Classes
    AnyRef → Any
  25. def unary_!(): Boolean

    Definition Classes
    Any
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Any

Inherited from AnyRef

Inherited from scala.Any

Ungrouped