Number

@native @JSType trait Number extends StObject
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
class Number

Value members

Concrete methods

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.

def toExponential(fractionDigits: Double): String
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.

def toFixed(fractionDigits: Double): String
def toLocaleString(locales: String): String
def toLocaleString(locales: String, options: NumberFormatOptions): String
def toLocaleString(locales: Array[String]): String
def toLocaleString(locales: Array[String], options: NumberFormatOptions): String
def toLocaleString(locales: Unit, options: NumberFormatOptions): String
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.

def toPrecision(precision: Double): String
def toString(radix: Double): String

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 toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object