Hello every technical elite, I’m a rookie in C#. This is my first time asking questions on stackoverflow, I’m a Chinese, my english is poor.
I am trying to make my C# application communicate with a digital scale via rs232 by using SerialPort class in .net.
I want insert a dot “.” in a string ,I received the string use:(buf[3].ToString(“X2”),the string is a number between 00~99,I want insert a dot in the number.How to do ?
Thanks a lot for any help.
If the string always have 2 characters in it ( Ex :07 / 10 /26), you can get the first and second character by
Substringfunction and do a string concatenation with a dot in between.