Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 386 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 386 Bytes

sort_price

This is a simple package who can help you to sort your price number from a number to unit, ten, hundreds and thousands

sortPrice Method

Recieve a number and return an String

Example

sortPrice(1000);

This will to return: 1,000.0

Suports long numbers

If you want number without decimals, just send a false value like second argument

Ej:

sortPrice(1000, false)