Rounding At The End

The following is an example of a simple bill segment with three bill lines.

Simple Bill Segment with Three Bill Lines

The first two bill lines are calculated using simple rate components that have a precision of .01. The last bill line is special, it rounds the bill up to the next highest 0.05 (this is an example from a country that doesn't have cents, their smallest coin is 0.05). The following would be necessary to calculate the last bill line:

An alternative approach is to do the following: