Hopefully someone can help me here, i recently downloaded the template from this site for the Order form Chris did recently and im having a slight issue, the prices that i have recently changed in the HTML code, has been changed to decimal’s, so basically cents in some cases instead of dollars. The java will calculate the decimals in the row totals for the products, but then it comes to the sub total and grand total, it decides to not include a decimal and round to a whole number, with the industry i work for and am currently designing a site for them, i was wondering if anyone could help me, I’m not sure exactly what part of the code you would need as i am not that fluent with Java, but any help would be greatly appreciated, if you need the code let me know with your response and i can post it
you are suppose to post the code first. That will get you your help much faster. without seeing your code, there is no way to tell what you did wrong. Off the top of my head, it might be a problem with your variables. There are different variables for different maths. Some round up, some down. You may need to declare your variables as a float type rather than an int. Post your code.
The website itself is not live, i can try and access the box i have in Chicago to temporarily host this page, not sure if im going to be able to do that (other owner might get a little upset LOL), in case i cannot, i will update you as to what i have tried, i can now get decimals in the subtotal and the order total, but it adds way to many zeros, both in front of the price, and after it. Sorry if i Dont get a live link up, if not ill screenshot it and post what its doing.