I have an array that randomly gets a coin put into it (denominations: 0.01, 0.05, 0.10, 0.25). The array is a Double array. It seems to work, but at times values get added that look like this:
[0.050000000000000003]
[0.050000000000000003, 0.01]
[0.050000000000000003, 0.01, 0.10000000000000001]
I'm not sure what I'm doing wrong to have these extra zeros show up.
Thanks in advance for any help.