EDIT: nm, i realized that the most appropriate thing is to just round each percentage.I have a side question here. I hope it is ok to ask here as it is not really an Xpression software question, but more of an Elections show and general algorithm/logic question. I could ask this on Stackoverflow, but they are jerks. Haha! I'm curious what is the best practice here with calculating percentages. In my case, the state's data will give us the vote count of each candidate. It is up to me to figure out percentages. Now, I image that rounding to some very small decimal point then truncating to the percentage point will be the most accurate, but it seems in my mind that no matter what I choose, rounding or truncating or any combination of both, it could leave results that don't add up to 100%. Am I right to assume this? Right now, I'm pursuing this solution that rounds to a small decimal point and then truncates for the percentage for the results for all the candidates but the last candidate/write-in. The final candidate/write-in I just add up the other percentages and subtract that from 100, so it adds up to 100% every time. I get that I'm probably being overly meticulous about this, but I take my responsibility here to give the public accurate results quite seriously. If anybody has any advice, I'd appreciate it.
62 Auriga DriveNepean, OntarioCanada, K2E 7W6
Phone+1 613 228-0688Emailcommunity@rossvideo.com