v0.8.10 (BWM fill) released to Google Play!

Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - Andor's Trail Directory - Join the Discord
Get the game (v0.8.10) from Google, F-Droid, our server, or itch.io

[Q] Rounding Decimals [ANSWERED]

Post your questions about game contents here. Want to know how to complete a quest, or where to go to find an item? Post here!
Post Reply
User avatar
fiernaq
Posts: 695
Joined: Fri Mar 16, 2012 3:49 pm
android_version: 2.3 - Gingerbread

[Q] Rounding Decimals [ANSWERED]

Post by fiernaq »

ANSWER:
rijackson741 wrote:So it appears the answer is to multiply, then round each down, then add (i.e. worst possible case :( ).
Rounded DOWN individually gives: (6 + 1) + (8 + 2) + (2 + 0) + (11 + 3) = 33% BC


First question: Are decimals in AT rounded UP, DOWN, or to the CLOSEST integer? Are all decimals handled the same way or are some handled one way and others another way?

Take a piece of light armor that has 11% BC on it. If you pick up Light Armor Proficiency (1), 30% of 11 is 3.3 so do you now have 15% BC (11% + 3.3% rounded up), 14% BC (11% + 3.3% rounded to closest integer), or 14% BC (11% + 3.3% rounded down)?

Second question: Does rounding occur before or after the addition of similar numbers?

Most armor proficiency skills in particular claim to affect every piece of armor in that category. For example, I'm wearing 3 pieces of light armor, a pair of leather gloves which I presume are light, a shield which claims "light" but I don't think qualifies as armor, and a trinket which seems fairly light but is also probably not considered armor. Those 4 pieces of definite armor have 6% BC, 8% BC, 2% BC, and 11% BC on them. The wording on the light armor proficiency skill would seem to indicate 30% increase on each individual item meaning that any rounding is done before the addition. Is that correct or does it simply give you a 30% increase on the total BC provided by any light armor you have on and then round that figure?

30% of 6 = 1.8
30% of 8 = 2.4
30% of 2 = 0.6
30% of 11 = 3.3

30% of total BC (27) provided by the 4 qualifying items = 8.1

Rounded UP individually gives: (6 + 2) + (8 + 3) + (2 + 1) + (11 + 4) = 37% BC
Rounded UP total gives: (6 + 8 + 2 + 11) + (9) = 36% BC
Rounded CLOSEST individually gives: (6 + 2) + (8 + 2) + (2 + 1) + (11 + 3) = 35% BC
Rounded CLOSEST total gives: (6 + 8 + 2 + 11) + (8) = 35% BC
Rounded DOWN individually gives: (6 + 1) + (8 + 2) + (2 + 0) + (11 + 3) = 33% BC
Rounded DOWN total gives: (6 + 8 + 2 + 11) + (8) = 35% BC
Other (Please describe)

Which one is correct?
Last edited by fiernaq on Sun Sep 01, 2013 1:14 am, edited 2 times in total.
Level: 58, HP: 102, AC: 295%, AD: 46-56, AP: 2/12, BC: 35%, DR: 4
Gold: 75235 | RoLS: 0 RoL: 0 SRoV: 0 VSH: 0
Skills: IF1, Ev1, Ev2, Ev3, CE1, CS1, CS2, Re1, WA1, HH1, Cl1, HH2, DaggerPro1, LightArmorPro1, ShieldPro1, WA2, Cl2
Equipment: Enhanced Combat Helmet, Serpent's Hauberk, Marrowtaint, Quickstrike Dagger, Remgard Shield, Villain's Ring, Villain's Ring, Leather Gloves Of Attack, Enhanced Combat Boots
Last Updated: 02-Dec-2013
Sarumar
VIP
Posts: 3275
Joined: Sat May 07, 2011 4:36 pm
android_version: 4.1 - Jellybean
Location: www.hel.fi

Re: [Q] Rounding Decimals

Post by Sarumar »

+1 intresting question. I like to hear more about how in AT system calculated things
Sarumar
..dansing left foot polka with Hirathil

Lvl 313|XP 559721474|Gold 7965188|AP 3/12|AC 516|AD 161-175|ECC 48|CM 6|BC 311|HP 591|DR 2|RoLS 3|RoL 2|ElyR 2|ChaR 45|GoLF 3|ShaF 9|SRoV 28|VSH 13|GoW 1|WMC 1
User avatar
Antison
Posts: 5274
Joined: Mon Mar 28, 2011 11:33 pm
android_version: 14 - Android 14
Location: A home without a beagle is just a house

Re: [Q] Rounding Decimals

Post by Antison »

+1. I too would love to read the answer on this.
"A home without a beagle is just a house"
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: [Q] Rounding Decimals

Post by rijackson741 »

Another +1 for this question.

When calculating ECC from CS it appears to round down. The document here https://docs.google.com/spreadsheet/ccc ... DJWSUlIY2c shows the number rounded to the nearest integer, but I currently have a CS of 41 and and ECC of 23%, which is rounded down (the exact ECC is 23.64%).

===========================================================================

I just completed the necessary quest, and added the light armor skill. The armor that should be affected is light chain mail (BC 13%), Leather cap (BC 6%), Troublemaker's gloves (BC 4%) and Vacor's boots of attack (BC 2%). My overall BC went from 78% to 83%.

The total for the four pieces, multiplied by 30% is 7.5. Even rounding that down does not give the actual increase.

So multiply first:
13*30%=3.9
6*30%=1.8
2*30%=0.6
4*30%=1.2

If you round each to the nearest and add you get 4+2+1+1=8
If you round each down and add you get 3+1+0+1=5

So it appears the answer is to multiply, then round each down, then add (i.e. worst possible case :( ).
Last edited by Pyrizzle on Sun Sep 01, 2013 1:45 am, edited 1 time in total.
Reason: combined posts
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
fiernaq
Posts: 695
Joined: Fri Mar 16, 2012 3:49 pm
android_version: 2.3 - Gingerbread

Re: [Q] Rounding Decimals

Post by fiernaq »

Ugh. Thanks for the info.
Level: 58, HP: 102, AC: 295%, AD: 46-56, AP: 2/12, BC: 35%, DR: 4
Gold: 75235 | RoLS: 0 RoL: 0 SRoV: 0 VSH: 0
Skills: IF1, Ev1, Ev2, Ev3, CE1, CS1, CS2, Re1, WA1, HH1, Cl1, HH2, DaggerPro1, LightArmorPro1, ShieldPro1, WA2, Cl2
Equipment: Enhanced Combat Helmet, Serpent's Hauberk, Marrowtaint, Quickstrike Dagger, Remgard Shield, Villain's Ring, Villain's Ring, Leather Gloves Of Attack, Enhanced Combat Boots
Last Updated: 02-Dec-2013
User avatar
rijackson741
Posts: 4451
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: [Q] Rounding Decimals [ANSWERED]

Post by rijackson741 »

Also, I added Dagger proficiency, and One-handed sword proficiency. I am wielding DotSP (AC 20%) and a Balanced Steel sword (AC 32%). My overall AC went from 184% to 199%, i.e. an increase of 15%.

20*30%=6
32*30%=9.6

Round each down and then add, you get 15 (although in this case if you add and then round down you also get 15).

It appears that rounding down is the general theme here :(
Level:71, XP:6493739, PV:608, FQ:84
HP:210, AC:212, AD:58-77, AP:4, ECC:16%, CM:1.5, BC:188, DR:3
Gold: 237559 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
Post Reply