Float/Double rounding off
-
Dear Friends, I want to round the
float/double
value upto two decimal places and display in edit control. How can i do so. Here is the scenario: I got an edit control on which adouble
variable is associated. I assign some value to this variable and callUpdateData(FALSE)
. As such the edit control gets populated with the value, but value is appearing of the form 67.24678945. I want to get this value of the form 67.25 i.e rounded upto two decimal places. Imtiaz -
Dear Friends, I want to round the
float/double
value upto two decimal places and display in edit control. How can i do so. Here is the scenario: I got an edit control on which adouble
variable is associated. I assign some value to this variable and callUpdateData(FALSE)
. As such the edit control gets populated with the value, but value is appearing of the form 67.24678945. I want to get this value of the form 67.25 i.e rounded upto two decimal places. Imtiaz