Mathematically challenged

wxdqz

New Member
When cnt = 3, the following code returns
US$ 2.8499999999999996 instead of 2.85!!!!

Any suggestions how to solve this or round it up to 2.85????

amount = (cnt*0.95)
document.Listing.total.value = "US$ "+ amount

Thank You
 
Back
Top