Interface Number

Extends the base ECMAScript (JavaScript) Number functionality with static and instance methods. Number Type Extensions

see

{@link http://msdn.microsoft.com/en-us/library/bb310835(v=vs.100).aspx}

Index

Methods

Methods

public format(format: string): string

Formats a number by using the invariant culture.

Parameters

  • format: string

Returns

string

public localeFormat(format: string): string

Formats a number by using the current culture.

Parameters

  • format: string

Returns

string

public parseInvariant(format: string): number

Returns a numeric value from a string representation of a number. This function is static and can be called without creating an instance of the object.

Parameters

  • format: string

Returns

number

public parseLocale(format: string): number

Creates a numeric value from a locale-specific string.

Parameters

  • format: string

Returns

number