Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Taxes Namespace / TaxHelper Class / Round Method
A decimal number to be rounded.
The number of significant decimal places (precision) in the return value.
Specification for how to round the decimal number.
In This Topic
    Round Method
    In This Topic
    Rounds a decimal value to a specified precision. A parameter specifies how to round the value.
    Syntax

    Parameters

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

    Return Value

    The 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