here is a sample page of my issue.
dim payment
payment = 134.42
payment = int(payment * 100)/100
Response.Write("<BR>" & payment)
'The result is 134.41??
dim payment
payment = 134.421
payment = int(payment * 100)/100
'result is 134.42
The first way is what I have and need to use, also people are uploading these values from an excel 2007 file, so at times the value could come in as a string hench the int() conversion.
Thanks for any help on this,
KS.
Ordinary Programmer
dim payment
payment = 134.42
payment = int(payment * 100)/100
Response.Write("<BR>" & payment)
'The result is 134.41??
dim payment
payment = 134.421
payment = int(payment * 100)/100
'result is 134.42
The first way is what I have and need to use, also people are uploading these values from an excel 2007 file, so at times the value could come in as a string hench the int() conversion.
Thanks for any help on this,
KS.
Ordinary Programmer