Format2 Method



 
The Format2 method transforms a double value into the usual currency notation.


Syntax

    [str=] CurrencyFormatter.Format2(dval, bool)
    
Parameters
    dval Double 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 double 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();
    mydouble = 10;
    alert(mycfm.Format2(mydouble, 1));
    </SCRIPT>
    

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

Back to top