Rounding

From Fallen London Wiki
(Redirected from Rounded)

This page describes how rounding appears to work in Fallen London. Note that this is based on observations, so if something appears inaccurate feel free to contribute.


Quality levels[edit]

While most quality unlock requirements and change amounts are a set number, sometimes a more complex formula can be used. If this involves division or multiplication by a fraction then the resulting number is rounded.

In most cases, rounding behaves how you would expect. A number with the decimal part smaller than 0.5 is rounded down and a number with the decimal part greater than 0.5 is rounded up. If the number's decimal part is exactly 0.5 then the number is rounded to the nearest even number. This style of rounding is known as bankers' rounding.

For example, when hunting a large rat (after acquiring the first level of A Name Scrawled in Blood), the action Expose yourself as bait determines the challenge difficulty level by multiplying Quarry's Savagery (15) by 1.5 to get 22.5. This value is rounded down, to 22, because 22 is an even number.

While this may be unexpected or seem counter-intuitive, this is a standard implementation of rounding in much of modern software, and it is presumably implemented in the software used by FBG.

Challenge success chance[edit]

The challenge success chance seems to be treated differently. In all cases it is rounded down (or floored), even if the decimal part is greater than 0.5.

For example, in the example above, a player with Dangerous 15 will have 0.6*15/22 = 40.9% chance of success. Because this is a challenge success rate, it is not rounded up and will instead be floored to 40%.