Decimal Precision

The Decimal Precision restriction indicates the number of decimal places used by the SessionM rules engine to determine the number of points awarded in Points Per - Item Quantity rules. This restriction works in conjunction with the rounding option specified in the outcome to determine the number of points awarded. (See Points Per events)

Events for which this is a core restriction

Example

Let's walk through how the SessionM rules engine applies the Decimal Precision restriction to the following example:

Members earns 1 point for purchasing 3 items. Phillip buys 4 items. The formula for calculating the points reward is: item quantity/points per item

  1. The rules engine divides 4 (number of items purchased) by 3 (number of items required to earn 1 point). The initial value is 1.333.

  2. The rules engine then truncates the interim result to the number of decimal places specified by the Decimal Places restriction to obtain the truncated value.
    0: 1.333 → 1
    1: 1.333 → 1.3
    2. 1.333 → 1.33

  3. The rules engine then applies the rounding setting to the truncated result to obtain the final value.