Datatypes conversion [modified]
-
Hi, I have this formula - Double i_decel_rate = ((Convert.ToInt32(textbox1.Text) * 10000) / Convert.ToInt32(textbox2.Text)); But for some reason the double doesn't display as double - like a value 7.98 is shown as 7 - it is not showing the decimals - but does display the integer value. I am using a text box to display this value - is there a way in webforms to print a value? Like the windows forms has messagebox.show()? is anything off with the syntax? thanks.
modified on Monday, December 10, 2007 8:41:47 AM
-
Hi, I have this formula - Double i_decel_rate = ((Convert.ToInt32(textbox1.Text) * 10000) / Convert.ToInt32(textbox2.Text)); But for some reason the double doesn't display as double - like a value 7.98 is shown as 7 - it is not showing the decimals - but does display the integer value. I am using a text box to display this value - is there a way in webforms to print a value? Like the windows forms has messagebox.show()? is anything off with the syntax? thanks.
modified on Monday, December 10, 2007 8:41:47 AM