Editing Rounding
From Fallen London Wiki (Staging)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
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. | 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== | ==Quality levels== | ||
− | 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. | + | 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''. | 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''. | ||
− | For example, when [[Contract: a Worryingly Large Rat|hunting a large rat]] (after acquiring the first level of {{IL|A Name Scrawled in Blood}}), the action [[Expose yourself as bait]] determines the challenge difficulty level by multiplying the {{IL|Quarry's Savagery}} (15) by 1.5 to get 22.5. Usually this would be rounded up. However | + | For example, when [[Contract: a Worryingly Large Rat|hunting a large rat]] (after acquiring the first level of {{IL|A Name Scrawled in Blood}}), the action [[Expose yourself as bait]] determines the challenge difficulty level by multiplying the {{IL|Quarry's Savagery}} (15) by 1.5 to get 22.5. Usually this would be rounded up. However because 22 is even, in this case it is rounded down. |
While this may appear counter-intuitive, this is a standard implementation of rounding in much of modern software and presumably is also implemented in the software used by FBG. | While this may appear counter-intuitive, this is a standard implementation of rounding in much of modern software and presumably is also implemented in the software used by FBG. |