trait NumberConstructor extends scala.scalajs.js.Object with StObject with Instantiable0[Number] with Instantiable1[Any, Number]
- Annotations
- @JSType() @native()
- Source
- NumberConstructor.scala
- Alphabetic
- By Inheritance
- NumberConstructor
- Instantiable1
- Instantiable0
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- val EPSILON: Double
The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately: 2.2204460492503130808472633361816 x 10−16.
- val MAX_SAFE_INTEGER: Double
The value of the largest integer n such that n and n + 1 are both exactly representable as a Number value.
The value of the largest integer n such that n and n + 1 are both exactly representable as a Number value. The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
- val MAX_VALUE: Double
The largest number that can be represented in JavaScript.
The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308.
- val MIN_SAFE_INTEGER: Double
The value of the smallest integer n such that n and n − 1 are both exactly representable as a Number value.
The value of the smallest integer n such that n and n − 1 are both exactly representable as a Number value. The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
- val MIN_VALUE: Double
The closest number to zero that can be represented in JavaScript.
The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324.
- val NEGATIVE_INFINITY: Double
A value that is less than the largest negative number that can be represented in JavaScript.
A value that is less than the largest negative number that can be represented in JavaScript. JavaScript displays NEGATIVE_INFINITY values as -infinity.
- val NaN: Double
A value that is not a number.
A value that is not a number. In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
- val POSITIVE_INFINITY: Double
A value greater than the largest number that can be represented in JavaScript.
A value greater than the largest number that can be represented in JavaScript. JavaScript displays POSITIVE_INFINITY values as infinity.
- def apply(value: Any): Double
- def apply(): Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def isFinite(number: Any): scala.Boolean
Returns true if passed value is finite.
Returns true if passed value is finite. Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a number. Only finite values of the type number, result in true.
- number
A numeric value.
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isInteger(number: Any): scala.Boolean
Returns true if the value passed is an integer, false otherwise.
Returns true if the value passed is an integer, false otherwise.
- number
A numeric value.
- def isNaN(number: Any): scala.Boolean
Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter to a number. Only values of the type number, that are also NaN, result in true.
- number
A numeric value.
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- def isSafeInteger(number: Any): scala.Boolean
Returns true if the value passed is a safe integer.
Returns true if the value passed is a safe integer.
- number
A numeric value.
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def parseFloat(string: java.lang.String): Double
Converts a string to a floating-point number.
Converts a string to a floating-point number.
- string
A string that contains a floating-point number.
- def parseInt(string: java.lang.String, radix: Double): Double
- def parseInt(string: java.lang.String): Double
Converts A string to an integer.
Converts A string to an integer.
- string
A string to convert into a number.
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated