roundingRuleFractional - Rounding Rules

Rounding rules in Fairways Debt enables you to refine rates, so they can be as precise as you wish.

<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
<precision> ... </precision>
<rateRoundingMethod> ... </rateRoundingMethod>
</roundingRuleFractional>

</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>

Tag

Item

Description

roundingRuleFractional

Main

Rounding rules to apply.

precision

Secondary

Denominator in the fraction 1/N.

rateRoundingMethod

Secondary

Rounding method.

 

To apply a rounding rule to a transaction:

  1. Add the <roundingRuleFractional> tags in the <interestRateComputation> tags of the transaction.
<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
</roundingRuleFractional>

</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>
  1. Add the <precision> tags in the <roundingRuleFractional> tags.
<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
<precision></precision>
</roundingRuleFractional>

</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>
  1. Enter the precision, i.e. the denominator in the fraction 1/N.

Note: The maximum precision is 10.000.000.

In this example, we enter a precision of 64.

<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
<precision>64</precision>
</roundingRuleFractional>

</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>
  1. Add the <rateRoundingMethod> tags in the <roundingRuleFractional> tags.
<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
<precision>64</precision>
<rateRoundingMethod></rateRoundingMethod>
</roundingRuleFractional>
</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>
  1. Enter a rounding method:

Rounding Method

Content Name

Nearest

NEAREST

Down

DOWN

Up

UP

Half down

HALF_DOWN

Half up

HALF_UP

In this example, we select the half down rounding method.

<standardLoan>
<phases>
<phase>
<indexing>
<index>
<advanced>
<interestRateComputation>
<roundingRuleFractional>
<precision>64</precision>
<rateRoundingMethod>HALF_DOWN</rateRoundingMethod>
</roundingRuleFractional>

</interestRateComputation>
</advanced>
</index>
</indexing>
</phase>
</phases>
</standardLoan>

The relevant fraction is automatically calculated using the entered precision, in this example 1/64 = 0,015625.

RoundingRule_EN.png

Was this article helpful?
0 out of 0 found this helpful