Hi all,
I was confused by using round method.
The following statements:
Response.Write Round(61.865, 2) & "<br>"
Response.Write Round(61.855, 2) & "<br>"
Response.Write Round(61.845, 2) & "<br>"
Response.Write Round(61.835, 2) & "<br>"
give me the following data:
61.86
61.86
61.84
61.84
But what I am expecting is
61.87
61.86
61.85
61.84
what is the problem? is there any other method round to two decimal with way I wanted?
Thank you.
Betty
I was confused by using round method.
The following statements:
Response.Write Round(61.865, 2) & "<br>"
Response.Write Round(61.855, 2) & "<br>"
Response.Write Round(61.845, 2) & "<br>"
Response.Write Round(61.835, 2) & "<br>"
give me the following data:
61.86
61.86
61.84
61.84
But what I am expecting is
61.87
61.86
61.85
61.84
what is the problem? is there any other method round to two decimal with way I wanted?
Thank you.
Betty