Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Stores Namespace / Currency Class / FormatCurrency Method
the LSDecimal value to format as a currency
If true, the value is converted from the base currency using the configured exhange rate. If false, the value is not converted before formatting.
In This Topic
    FormatCurrency Method (Currency)
    In This Topic
    Formats the currency
    Syntax
    public virtual string FormatCurrency( 
       decimal value,
       bool convert
    )

    Parameters

    value
    the LSDecimal value to format as a currency
    convert
    If true, the value is converted from the base currency using the configured exhange rate. If false, the value is not converted before formatting.

    Return Value

    The string representation of the value of arg, formatted as specified by format and formatProvider.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also