Documentation

SaleFormatCurrency

string
SaleFormatCurrency(
 float fSum,
 string strCurrency
);

Formats the sum fSum according to the formatting rules that the system provides for the currency strCurrency in the current language.

Parameters

Parameter Description
fSum The amount of money to be formatted.
strCurrency The currency whose rules are to be used for formatting.

Return Values

Returns the formatted string

Example



<?
echo SaleFormatCurrency(11800.95, "USD");
?>
© «Bitrix24», 2001-2024
Up