Strange problem with ASP
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement