Does anyone have any ideas for getting a series of integers that add up to integer n from a series of arbitrary numbers from 0 to 1?
Really broad question I know, I'm not sure how to better define it.
So, {0,0,0,1} would be {0,0,0,n}, and {1,1,0,0} would be {n/2,n/2,0,0} etc.
Accounting for rounding error by adding to or subtracting from the last integer or something, I'll figure that part out afterwards.