Configuring the Rounding of Decimal Values of Points

You can configure the number of decimal places used for rounding points. This configuration applies to:

  • Accrual items, which reward the member in decimal points based on the configuration.

  • Point block debits, which subtract decimal values from the point block and leave a decimal balance in the point block.

  • Actions that use points, including Assign Points, Redeem Points, Purchase Points, Transfer Points, Reactivate Points, Transaction Cancellation.

  • Member services that use points, including Purchase Points, Transfer Points, Points Reactivation, Gift Points, Manual Credit and Manual Debit.

  • Redemptions, which consume points including decimal values. However, the total number of points needed to redeem a product must be defined in the Products screen as an integer value and cannot use decimal values.

  • Accrual and redemption cancellation, which revert points using the same decimal precision with which they were rewarded or redeemed in the transaction being cancelled.

You can also override rounding for qualifying points. If you configure rounding so points are rounded to one to seven decimal places, then you can override this setting for qualifying points, so they are still rounded to the nearest integer.

To configure rounding, use the following user properties of the Business Service LOY Processing Engine:

  • Points Precision. This user property controls the number of decimal places to which the points are rounded. The default value is 0, which means that the points are rounded to an integer value. Valid values are any integer greater than or equal to 0 and less than or equal to 7. For example, the Assign Points action does a calculation that provides a reward of 1.345714932 points. Then:

    • If the Points Precision user property has the default value of zero, then this reward is rounded to the nearest integer, in this case, 1 point.

    • If the Points Precision user property is set to one, then this reward is rounded to 1.3 points.

    • If the Points Precision user property is set to seven, then this reward is rounded to 1.3457149 points.

  • Points Precision Override for QF. This user property allows you to round off qualifying points to integers, even if you have used the Points Precision user property to round off points to a decimal value. To override the Points Precision user property for qualifying points, set this user property to Y. If this user property is not defined or is set to N, then qualifying points will be rounded in the same way as other points, based on the Points Precision user property.

If any other feature except for qualifying points requires that you override the rounding and use integer points, then you can control the input at the user interface level. Allow the user to enter only integer values in the appropriate fields by changing the data type of these fields in the business component to integer.