MEF Balance Update Rounding
For each event in a MATRIXX Event File (MEF), balance update records are rounded to the precision defined in balance and meter templates. For more information about balance and meter precision, see the discussion about balance and meter precision in MATRIXX Pricing and Rating.
The balance precision specifies the rounding applied to balance updates for each
transaction. Only the final, stored update is rounded; intermediate results are not
rounded. If there are multiple events within a transaction (for example, for
multiple service contexts, a first use event, or recurring event during usage
rating), the balance updates for each individual event are rounded to this
precision. The following example shows a balance update record from a MEF.
DataContainer:
containerId=MtxBalanceUpdate(209,4530,1)
idx name type L A M P value
0 BalanceClassId UINT32 0 0 0 1 10000
1 BalanceTemplateId UINT64 0 0 0 1 10003
2 BalanceIntervalId UINT32 0 0 0 1 1
3 BalanceResourceId UINT32 0 0 0 1 2
4 BalanceStartTime DATETIME 0 0 0 1 2009-12-01T00:00:00.000000Z
5 BalanceEndTime DATETIME 0 0 0 1 2010-01-01T00:00:00.000000Z
6 Flags UINT32 0 0 0 1 0
7 Amount DECIMAL 0 0 0 1 100.0
8 GrossAmountBefore DECIMAL 0 0 0 1 10.5
9 GrossAmountAfter DECIMAL 0 0 0 1 353.3
Note: The balance precision defined in balance and meter templates is an integer
between 0 and 7.