Skip to content

marchintosh94/numberformat

Repository files navigation

Introduction

The easy way to format number in your Typescript and Javascript applications.

With this library you can configure a centralised number formatter for your application as well as configure at runtime custom number format or currency.

{% content-ref url="https://app.gitbook.com/s/ngFcKbLvzwKsAQzQGiQQ/" %} Number format {% endcontent-ref %}

Features

  • create global app number formatter: you can set default number of decimals to be dysplayed, the delimiter character for decimal and thousands separators and configure global currency symbol and code
  • format number as currencies
  • format number with decimal and thousands separator
  • create custom one shot number format: when you format a number you can specify custom decimal to be displayed
  • create custom one shot currency number format: when you format a number as currency you can specify custom decimal to be displayed and custum currency symbol