Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Extensions Namespace / DecimalExtension Class / LSCurrencyFormat Method / LSCurrencyFormat(Decimal,String) Method
The input decimal value.
The pattern to use for formatting the value, use lc to format in store base currency, ulc to format is user default currency.
In This Topic
    LSCurrencyFormat(Decimal,String) Method
    In This Topic
    Formats the value according to the specified pattern
    Syntax
    [Extension()]
    public static string LSCurrencyFormat( 
       decimal value,
       string format
    )

    Parameters

    value
    The input decimal value.
    format
    The pattern to use for formatting the value, use lc to format in store base currency, ulc to format is user default currency.

    Return Value

    Formatted representation of the decimal.
    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