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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:38:07+00:00 2026-05-17T19:38:07+00:00

I am trying to convert an IEEE based floating point number to a MIL-STD

  • 0

I am trying to convert an IEEE based floating point number to a MIL-STD 1750A floating point number.

I have attached the specification for both:
alt text

I understand how to decompose the floating point 12.375 in IEEE format as per the example on wikipedia.

However, I’m not sure if my interpretation of the MIL-STD is correct.

12.375 = (12)b10 + (0.375)b10 = (1100)b2 + (0.011)b2 = (1100.011)b2
(1100.011)b2 = 0.1100011 x 2^4 => Exponent, E = 4.

4 in normalised 2’s complement is = (100)b2 = Exponent

Therefore a MIL-STD 1750A 32 bit floating point number is:

S=0, F=11000110000000000000000, E=00000100

Is my above interpretation correct?

For -12.375, is it just the sign bit that swaps? i.e.:

S=1, F=11000110000000000000000, E=00000100

Or does something funky happen with the fraction part?

  • 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-17T19:38:07+00:00Added an answer on May 17, 2026 at 7:38 pm

    The diagram above is a bit misleading, I think. In IEEE format, to switch from positive to negative, you simply flip the first bit. The remaining three bits can be treated as an unsigned number. In the MIL-STD format, the mantissa is a two’s complement number, so while the first bit does indicate the sign, the remaining 23 bits do not remain the same.

    What I get is

    S=1, F=00111010000000000000000, E=00000100
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to convert an 80-bit extended precision floating point number (in a
Possible Duplicate: 32 bit hex to 32 bit floating point (IEEE 754) conversion in
I have an XML file and I'm trying convert it into a (table( HTML
Trying to convert a perl script to php. In perl I have a hash
Trying to convert some VB to C#... (learning C#, too). I have some code
Whilst trying to convert the number from the value of a numericupdown to an
I'm trying to convert old QuickTime framework code to the 64-bit Cocoa-based QTKit on
I have a code in vb, and I'm trying convert it to c#. _nextContactDate.ToShortDateString
I'm trying to convert an existing Admin model to Devise. We already have a
Im trying to convert a general tree (tree that have one or more children

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.