Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Taxes Namespace / TaxHelper Class / AlwaysRoundUp Method
A decimal number to be rounded.
The number of significant decimal places (precision) in the return value.
In This Topic
    AlwaysRoundUp Method
    In This Topic
    Rounds a decimal value to a specified precision. Will always round upword.
    Syntax
    public static decimal AlwaysRoundUp( 
       decimal amount,
       int decimalPlaces
    )

    Parameters

    amount
    A decimal number to be rounded.
    decimalPlaces
    The number of significant decimal places (precision) in the return value.

    Return Value

    The up-rounded number nearest amount with a precision equal to decimalPlaces.
    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