Thanks, Math.round() worked!
Type: Posts; User: tonynsx
Thanks, Math.round() worked!
Thanks for clearing that up, yes I did misunderstood.
--- Update ---
Now it's working the way I want. Please let me know if I can improve on anything.
Change: 88.38, Dollar: 88, getCent:...
If I have, 77.92, the 77 is the dollar, then .92 is the cent. Unless my calculations are wrong above.
How can I make the value of double 2 decimal places? I know how to display 2 decimal places, but how to actually set the values to 2?
Example, my change below is 7.93
So it knows the dollar is...