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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:58:57+00:00 2026-05-16T23:58:57+00:00

This isn’t necessarily a programming question but i’m sure you folks know how to

  • 0

This isn’t necessarily a programming question but i’m sure you folks know how to do it. How would i convert floating point numbers into binary.

The number i am looking at is 27.625.

27 would be 11011, but what do i do with the .625?

  • 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-16T23:58:57+00:00Added an answer on May 16, 2026 at 11:58 pm

    Assuming you are not thinking about inside a PC, just thinking about binary vs decimal as physically represented on a piece of paper:

    You know .1 in binary should be .5 in decimal, so the .1’s place is worth .5 (1/2)

    the .01 is worth .25 (1/4) (half of the previous one)

    the .001 is worth (1/8) (Half of 1/4)

    Notice how the denominator is progressing just like the whole numbers to the left of the decimal do–standard ^2 pattern? The next should be 1/16…

    So you start with your .625, is it higher than .5? Yes, so set the first bit and subtract the .5

    .1 binary with a decimal remainder of .125

    Now you have the next spot, it’s worth .25dec, is that less than your current remainder of .125? No, so you don’t have enough decimal “Money” to buy that second spot, it has to be a 0

    .10 binary, still .125 remainder.

    Now go to the third position, etc. (Hint: I don’t think there will be too much etc.)

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

Sidebar

Related Questions

I know this isn't strictly a programming question but y'all must have experienced this.
I know this isn't strictly speaking a programming question but something I always hear
This isn't a programming question but it's about the SDKs and the IDE. I've
This isn't a question but I thought I'd start a thread where links to
This isn't a crucial piece of knowledge for me, but I would still like
Hopefully this isn't too stupid but I want to make sure I'm doing this
This isn't a holy war, this isn't a question of which is better. What
This isn't a homework question, by the way. It got brought up in class
This isn't the exact use scenario but I was wondering if it was possible
This isn't solved, but I found out why: MySQL View containing UNION does not

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.