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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:52:25+00:00 2026-06-17T04:52:25+00:00

I am tryling to learn C and now i am a floats. I know

  • 0

I am tryling to learn C and now i am a floats. I know all values have different sizes on different machines. But i am trying to learn the concept.

Lets say a float is saved in 4 bytes. I read that the first bit is the sign bit, which decide if the number is positve or negative. Then the next 7 bits is the exponent and the rest (23 bits) is the mantissa. Which could be this:
1 010 1001 0000 0000 1011 1001 0000 111

But how does this translate to a float? I can read binary but i dont see the formula behind it :). Could some one explain this one to me, or how it works?

  • 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-17T04:52:26+00:00Added an answer on June 17, 2026 at 4:52 am

    I wrote this a few years ago.
    I think it should help you understand how floating point numbers are represented:

    http://www.eosgarden.com/en/articles/float/

    Basically, the formula for normalized numbers is: -1^S * 1.M * 2^( E - 127 ) where S is the sign, M the mantissa, and E the exponent. But everything is explained in details in the previous link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn Haskell and I'm through all the basics. But now I'm
I'm trying to learn C, and now I'm playing with structures. I have the
I am trying to learn some DirectX API and, for now, I have just
Iam trying to learn ruby now.. And I have doubts in ranges. Help me
I am trying to learn Flex and now i have the next code: http://pastebin.com/rZwxF7w1
I am trying to learn Spring framework by building simple website, now I have
So I'm trying to learn C right now, and I have two functions: one
So I'm trying to learn C right now, and I have some basic struct
So I'm trying to learn C right now, and I have some basic struct
I am trying to learn css. up to now I have been lagging behind

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.