I display the value via a Text Label (works for both)
a) displays w/ decimal point
b) displays without a decimal point

I then SUM the value of WERP for all counters
a) the SUM does not include the StratWar WERP (Iâ€™m guessing because type is REAL)
b) the SUM does include the StratWar WERP (Iâ€™m guessing because type is INTEGER)

Should SUM be able to sum reals as well as integers? If yes, then itâ€™s a bugâ€¦ If no, then the documentation should note itâ€¦

Itâ€™s interesting that 0.5*A != A/2 and the results (apparently) are typed differentlyâ€¦

â€śAâ€ť and â€ś2â€ť are both integers, so integer division is performed (and the remainder is ignored). You would find if you changed it to â€śA/2.0â€ť that you would get the same results as â€ś0.5*Aâ€ť.

VASSAL doesnâ€™t really support real numbers, only integers and strings. This is why the SUM isnâ€™t working correctly if you try to feed it a real number. If those fractions are important and throw off your final sums, the best solution I can come up is to multiply your entire WERP calculation by 2 (and probably call it DoubleWERP or something like that), so you end up with: 2 * (Subs + 10Flak + FlakFactors + 5Bombers + 3Fighters + V2 + 4ME262) + V1

Then, you can SUM DoubleWERP, and divide the final SUM by 2. If the final fraction is important, you might need some extra trickery to check if the sum is odd, and add â€ś.5â€ť to the displayed result if so (or if you want to round up instead of down, just add â€ś1â€ť to the SUM before dividing by 2).