Number

@JSGlobal("Number") @native @JSType class Number() extends StObject with Number
Companion
object
trait Number
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(value: Any)

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toExponential(fractionDigits: Double): String
Inherited from
Number
def toExponential(): String

Returns a string containing a number represented in exponential notation.

Returns a string containing a number represented in exponential notation.

Value Params
fractionDigits

Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.

Inherited from
Number
def toFixed(fractionDigits: Double): String
Inherited from
Number
def toFixed(): String

Returns a string representing a number in fixed-point notation.

Returns a string representing a number in fixed-point notation.

Value Params
fractionDigits

Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.

Inherited from
Number
def toLocaleString(locales: Unit, options: NumberFormatOptions): String
Inherited from
Number
def toLocaleString(locales: Array[String], options: NumberFormatOptions): String
Inherited from
Number
def toLocaleString(locales: Array[String]): String
Inherited from
Number
def toLocaleString(locales: String, options: NumberFormatOptions): String
Inherited from
Number
def toLocaleString(locales: String): String
Inherited from
Number
def toLocaleString(): String
Inherited from
Object
def toPrecision(precision: Double): String
Inherited from
Number
def toPrecision(): String

Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.

Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.

Value Params
precision

Number of significant digits. Must be in the range 1 - 21, inclusive.

Inherited from
Number
def toString(radix: Double): String
Inherited from
Number
def valueOf(): Any
Inherited from
Object