Advertisement

Strange problem with ASP

Started by February 23, 2005 11:39 AM
0 comments, last by penetrator 20 years ago
I have a strange problem going on with ASP, perhaps you can help me: i have a XYZ variable that, after some calculations, has a value of 13.695: i round this number using the following function Fix(XYZ *10^2 + 0.5) / 10 ^ 2 and i get an incorrect value of 13.69 (should be 13.70) If i run the function inserting the value directly, i.e. Fix(13.695 *10^2 + 0.5) / 10 ^ 2 it works returning 13.70 Seems that the XYZ variable holding 13.695 (if i response.write i get that value), is messing up somehow ? Thanks
Sorry i tought i was on the general programming forum ... moving there ...

This topic is closed to new replies.

Advertisement