You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: