I have a form where i am multiplying a figure with 100 to send it to other form .
the code i m using is :
document.cpiForm.PurchaseAmount.value = document.cpiForm.PurchaseAmount.value * 100;
When i enter a value like 24.98 , The other form receives it as 2498
but when i enter a value like 34.98 , the other form receives it as 3597.9999999999995
I want it to be 3498.
I hope i am able to explain you the problem.
Can u please help me out ?
Thanks in advance
SAndeep
the code i m using is :
document.cpiForm.PurchaseAmount.value = document.cpiForm.PurchaseAmount.value * 100;
When i enter a value like 24.98 , The other form receives it as 2498
but when i enter a value like 34.98 , the other form receives it as 3597.9999999999995
I want it to be 3498.
I hope i am able to explain you the problem.
Can u please help me out ?
Thanks in advance
SAndeep