Black Friday 30% off Basic and ProBlack Friday −30%Ends in––d––h––m––sSee the deal

format

Numbers written the way the chart writes them, for drawing texts.

format.price(x)

With the symbol’s decimals: 21534 becomes "21534.00".

format.quantity(x)

Like volumes: whole numbers below 10,000, then K, M and B. 12345 becomes "12.3K".

format.percent(x)

With the percent sign: 12.5 becomes "12.50%".

format.number(x, precision)

With precision decimals: format.number(1.23456, 2) gives "1.23".