Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: grey_whiskers

 

/Rookie question sub-routine/

Wouldn't you have to use decimals if you were going to be shifting a finite number of votes and don't want a rounding error?

I think the plot of the movie Office Space is that they found that financial rounding of currency meant that rounding resulted in unclaimed stash of pennies adding up to tens of thousands of dollars.

/End of Rookie sub-routine/

~~~~~~~~~~~~~~~~~~~

/function call/

I was thinking percentages. If they didn't know how many votes to steal they didn't want to hard wire a finite steal number. So use a percentage but avoid rounding error by using a floating point.

/end function call/


1,307 posted on 11/13/2020 7:45:38 AM PST by ransomnote (IN GOD WE TRUST)
[ Post Reply | Private Reply | To 1174 | View Replies ]


To: ransomnote
Note the New York Slimes edison results don't have integer votes for each candidate, but an overall total and a percentage with three significant figures.
1,331 posted on 11/13/2020 8:08:48 AM PST by grey_whiskers (The opinions are solely those of the author and are subject to change with out notice.)
[ Post Reply | Private Reply | To 1307 | View Replies ]

To: ransomnote; grey_whiskers
So use a percentage but avoid rounding error by using a floating point.

Exactly correct. Votes are INTEGERS. You can get percentages from integers, but you can't get (all) integers from percentages. The system seems to have functionality to cap a percentage for a certain candidate.

1,341 posted on 11/13/2020 8:21:11 AM PST by numberonepal
[ Post Reply | Private Reply | To 1307 | View Replies ]

To: ransomnote
/function call/

I was thinking percentages. If they didn't know how many votes to steal they didn't want to hard wire a finite steal number. So use a percentage but avoid rounding error by using a floating point.

/end function call/

It's been my experience, if it runs enough cycles, you'll see a rounding error eventually. Even with floating point..

1,348 posted on 11/13/2020 8:35:08 AM PST by darbymcgill
[ Post Reply | Private Reply | To 1307 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson