I have a line of code as follows:
totalhoursTextBox.Text = (Convert.ToString(cmd.Parameters["@totalhrs"].Value.ToString()));
This code always truncates the digits after the decimal. Can anyone help with what is required to change to get the digits after the decimal. Eg. Now I get 41 when I should get 41.3.
totalhoursTextBox.Text = (Convert.ToString(cmd.Parameters["@totalhrs"].Value.ToString()));
This code always truncates the digits after the decimal. Can anyone help with what is required to change to get the digits after the decimal. Eg. Now I get 41 when I should get 41.3.