Steph44:
Well...I've just re-programmed the coin acceptor and it works perfect!!I changed the pulses which are given from the coin acceptor, according to the value of each coin (1 pulse for 10 cents,2 pulses for 20 cents, 5 pulses for 50cents and 10 pulses for 1 euro)...and with that little change of the value from int to float it works right as i want!!!
Here is some advice for you:
For you, I recommend using an int (or, for large amounts, a long) to keep track of money in cents, and using a float only for display. (Divide integer cents by 100.0 to convert to a float for display.)