blah blah blah is here! blah blah » Close

0
votes
1 answers

Best way to convert large decimal value(string type) to Hexadecimal in C#??

What is the best way to convert large decimal value(string type) to Hexadecimal in C#? I know this may sound stupid but I just need to do this operation. Ex: string strDecValue = "12345678901234567890123456789012345678901234 ...

0
votes
4 answers

convert string to decimal using C#

Textbox populated with sql query value which is a decimal. Values are in a textbox so they can be edited. I need to upload edited values back into sql table using C#. Error message: Input string was not in a correct format. Code in aspx ...

1
votes
1 answers

Formatting a string to a output in a decimal format

Hi, I have a program that calculates the average of three test scores. The test scores are entered into text boxes, I convert the text to uint and the result into a double. I then am converting the final result back into a string to disp ...

0
votes
1 answers

Multiplying 2 decimal varialbes together

I am multiplying to decimal type variables together, do I have to cast or use any special symbols to ensure the output will also be a decimal value? I know I have to add the suffix m or M. e.g.: [code] decimal v1 = 234M; [/code ...

1
votes
3 answers

Decimal place in textbox

Hi, I would like to display 4 decimal places in a textbox. Following is the code I have written: Y_Encoder_Pos.Text = System.Convert.ToString(Globals.motorPos); Y_Encoder_Pos.Text = String.Format("{0:0.0000}"); There is ...

Feedback