Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balance poll tallies using normalization #5

Open
domi41 opened this issue Jul 9, 2021 · 0 comments
Open

Balance poll tallies using normalization #5

domi41 opened this issue Jul 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@domi41
Copy link
Contributor

domi41 commented Jul 9, 2021

Something like PollTally.BalanceWithNormalization()

There are at least two ways of attaining balance through normalization.
Please suggest other ways if you know of some.

Using Least Common Multiplier (LCM)

Would require math/big and some refacto of int types and arithmetic operations. And LCM utilities.
Considering putting such a heavy change in a fork, or a branch perhaps?
What's the proper way for this kind of thing?

We can't easily do both methods since math/big needs to be in our structs and core arithmetic as well.

Using floating-point arithmetic

Pragmatically, it should work OK in most cases. Or will it?
We don't like it, though, since floating-point arithmetic is notoriously unreliable.

This would also require a change of int types.

Using fixed-precision floats as ints ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant