string CCurrencyLang::CurrencyFormat( float price, string currency, bool useTemplate );
This method formats the price according to currency settings. In case if this method is called in the administrative section, it additionally performs cleaning of format from tag and scripts. If the method is called in the public section, then the HIDE_ZERO parameter, which responds for the hiding of nonsignificant zeros in the fractional part, will be enacted. Static method.
|Price (amount of money) that shall be converted.
|Currency ID code.
|If specified as true, then it operates as CurrencyFormat and the CurrencyFormat event is called. If specified as false, then operates as CurrencyFormatNumber.
Returns a formatted string.