Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Extensions Namespace / DecimalExtension Class / LSCurrencyFormat Method / LSCurrencyFormat(Object,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(Object,String) Method
    In This Topic
    Formats the value according to the specified pattern
    Syntax
    public static string LSCurrencyFormat( 
       object 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.
    Remarks
    This is helpful in asp.net databinding expressions.
    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