Documentation

CurrencyFormatNumber

string
CurrencyFormatNumber(
 float price,
 string currency
);

This function formats the price amount in accordance with currency settings for the current language without using a template.

Note: it is recommended to use the new CurrencyFormat function of CCurrencyLang class in seated of this deprecated function.

Function parameters

ParameterDescription
price Price (sum amount), which must be formatted.
currency Currency, by which rules the formatting must be performed.

Returned values

Returns a string with the sum amount, formatted according to the settings without template.



© «Bitrix24», 2001-2024
Up