Format Method



 
The Format method transforms a long value into the usual currency notation.


Syntax

    [str=] CurrencyFormatter.Format(currency, bool)
    
Parameters
    currency Currency value to format.
    bool Boolean value that specifies if the currency symbol should be included.
Return Value
    Returns a String that contains the formatted value.
Remarks
    None.
Examples
    The following example formats a currency value in such a way that it includes a comma and the currency symbol.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mycfm = SiteKiosk.Plugins("SiteCash").CreateCurrencyFormatter();
    mycurrency = 10;
    alert(mycfm.Format(mycurrency, 1));
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top