Taiga UI 5.0 is out!

format CDK / CORE

GitHub

On this page

A set of format utils

px

Adds 'px' to a number
'11px' = px(value);

getCurrencySymbol

Returns a currency symbol from its three letter code or ISO 4217
= getCurrencySymbol(currency);

formatNumber

Formats a number with separators
'123 456.78' = tuiFormatNumber(value, precision, decimalSeparator, thousandSeparator);