Hey, I've got a maths assignment to do on riffling a deck of cards.
I'm making a guess-and-check program on my calculator for extra originality marks.
I really need help though. The basic idea is if (c-1)(2^x/c-1 -w)=1 in my formula then the number guessed (x) is correct. However, in some of the higher numbers of cards, the above formula equals something like .9999999997 or .9999999998 instead of one.
This becomes a problem as it says the number guessed is incorrect, when infact it is correct.
EDIT: PUTTING THE CALCULATOR ON AUTO ROUND TO ANY AMOUNT OF DECIMAL PLACES DOES NOT WORK
I have:
:if G=1:then
: Disp "number of cards",x
However, it needs to be something like
"If G=0.955555555 to 1:then
:"Disp "number of cards",x"
Is there any way anyone knows about that I can program this into my calculator? It's really urgent. Thankyou!
