TextIO is an input/output external class I'm using, designed by David J. Eck. I doubt its the problem, but the coding for it is currently above my skill.
I ran multiple searches, but google fails me on this one guys
Raine Andrews wrote:is there a way to restrict the place value of a double variable?
A few options are ... (1) use the printf() method, along with appropriate formatting, (2) use NumberFormat to convert it to a string and print the string.
Raine Andrews wrote:Got it! I deleted the quarter, dime, nickle, and penny variables, and instead plugged in the value times 100 where the variables used to be. If I divide that at the end by 100, it gives me a nice round number ^.^
That's actually a common solution for monetary values -- using whole numbers to represents the total number as cents, instead of using floating point to represent the dollars and cents.