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 904819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:06:50+00:00 2026-05-15T16:06:50+00:00

I am looking to learn how to get two nibbles (high and low) from

  • 0

I am looking to learn how to get two nibbles (high and low) from a byte using C# and how to assemble two nibbles back to a byte.

I am using C# and .NET 4.0 if that helps with what methods can be done and what libraries may be available.

  • 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-05-15T16:06:51+00:00Added an answer on May 15, 2026 at 4:06 pm

    You can ‘mask off’ 4 bits of a byte to have a nibble, then shift those bits to the rightmost position in the byte:

    byte x = 0xA7;  // For example...
    byte nibble1 = (byte) (x & 0x0F);
    byte nibble2 = (byte)((x & 0xF0) >> 4);
    // Or alternatively...
    nibble2 = (byte)((x >> 4) & 0x0F);
    byte original = (byte)((nibble2 << 4) | nibble1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that I'm using to get data from a network socket.
I'm a Java developer looking to learn some C#/ASP.NET. One thing I've never liked
I'm looking for a simple-to-learn php framework for an application that is being migrated
I've learn a while ago on StackOverflow that we can get the instance ID
Looking at several posts, I get a feel that many of the questions arise
I am looking to get my MCTS then a MCPD. I learn better by
I have come to learn that my learning habits in programming is by looking
I'm looking to learn about embedded programming (in C mainly, but I hope to
i'm looking to learn about SSO, and heard about Sun Access Manager and openSSO(?)
I'm looking to learn Windows PowerShell. Can someone give me some really good references

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.