WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

A Format Locale Object

Hierarchy

  • FormatLocaleObject

Index

Methods

format

  • format(specifier: string): function
  • Returns a new format function for the given string specifier. The returned function takes a number as the only argument, and returns a string representing the formatted number.

    Parameters

    • specifier: string

      A Specifier string

    Returns function

      • (n: number): string
      • Parameters

        • n: number

        Returns string

formatPrefix

  • formatPrefix(specifier: string, value: number): function
  • Returns a new format function for the given string specifier. The returned function takes a number as the only argument, and returns a string representing the formatted number. The returned function will convert values to the units of the appropriate SI prefix for the specified numeric reference value before formatting in fixed point notation.

    Parameters

    • specifier: string

      A Specifier string

    • value: number

      The reference value to determine the appropriate SI prefix.

    Returns function

      • (n: number): string
      • Parameters

        • n: number

        Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc