Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8486903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:05:02+00:00 2026-06-10T21:05:02+00:00

Hello every technical elite, I’m a rookie in C#. This is my first time

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:05:03+00:00Added an answer on June 10, 2026 at 9:05 pm

    If the string always have 2 characters in it ( Ex :07 / 10 /26), you can get the first and second character by Substring function and do a string concatenation with a dot in between.

    string ss = buf[3].ToString("X2");  
    string result= ss.Substring(0, 1) + "." + ss.Substring(1, 1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello everyone I am a newbie to php and this is my first ever
Hello every one this is extension to my previous question.Here is the link File
hello every one i face this problem and iam too weak in DB i
hello every one i am using this code to give glowing effect to my
Hello Everyone, I have made so many Flash presentations, but every time i stuck
hello every one i have table view with one cell,and i make on this
Hello every unity programmers and stackoverflow members. I'm progressing past article's project I have
Hello every time i try to record the date with CFAbsoluteTimeGetCurrent(); my app ignores
Hello friends, I want to check internet connection each & every time is active
Hello every one this is basically extension to my previous question. i have write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.