Rounding

From Cyber Knights: Flashpoint Wiki

In Cyberknights Classic there are many equations that will require rounding decimal values to nice, crisp integers. Whenever this operation is needed a slightly different rounding operation is performed than you might anticipate.


When a value needs to round to an integer and it has a decimal portion that is greater than 0.5, it will round upward.

When a value needs to round to an integer and it has a decimal portion that is lower than 0.5, it will round downward.

However, when a value needs to round to an integer and its decimal portion is exactly 0.5, it will round to whichever result is even.


This is sometimes called Gaussian rounding. It has the nice property of avoiding upward or downward bias in numbers, even when negative values are in play (which they are in CK:F.) However, it does have the odd property that you will encounter more even numbers in the game than odd numbers as a result.