Conde
07-09-2003, 10:01 AM
Hi I need help, I building a website with an order form where clients can order goods and preview it, before sending their order.
The problem I have is that, I have a javascript function that calculates the goods bought, and gives me a GRAND TOTAL.
But the grand total is comming with so many decimal places, like this: £68.8470450853
What I am asking is if anyone know a piece of code on how to solve this problem. What I want is only two decimal places, like that: £68.84 Thank you if you can help me...
The problem I have is that, I have a javascript function that calculates the goods bought, and gives me a GRAND TOTAL.
But the grand total is comming with so many decimal places, like this: £68.8470450853
What I am asking is if anyone know a piece of code on how to solve this problem. What I want is only two decimal places, like that: £68.84 Thank you if you can help me...