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

  • Home
  • SEARCH
  • 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 6638915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:29:36+00:00 2026-05-25T23:29:36+00:00

How do I add and subtract 16 bit floating point half precision numbers? Say

  • 0

How do I add and subtract 16 bit floating point half precision numbers?

Say I need to add or subtract:

1 10000 0000000000

1 01111 1111100000

2’s complement form.

  • 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-25T23:29:36+00:00Added an answer on May 25, 2026 at 11:29 pm

    Assuming you are using a denormalized representation similar to that of IEEE single/double precision, just compute the sign = (-1)^S, the mantissa as 1.M if E != 0 and 0.M if E == 0, and the exponent = E – 2^(n-1), operate on these natural representations, and convert back to the 16-bit format.

    sign1 = -1
    mantissa1 = 1.0
    exponent1 = 1

    sign2 = -1
    mantissa2 = 1.11111
    exponent2 = 0

    sum:
    sign = -1
    mantissa = 1.111111
    exponent = 1

    Representation: 1 10000 1111110000

    Naturally, this assumes excess encoding of the exponent.

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

Sidebar

Related Questions

I need some help with floating point numbers...please! Here's the thing, I have code
I am wondering how to implement IEEE-754 32-bit single precision floating point division in
Given the following flags, [Flags] public enum Operations { add = 1, subtract =
In my program, I am using BitArrays to represent 160 bit numbers. I want
You can add and subtract 1 from my cell.textLabel.text . I am adding 1
How to add/subtract in css property? #box { position: absolute; top: 50% ; left:
How do I add/subtract two time objects. I have two time objects (arrival and
I'm writing a compressor for a long stream of 128 bit numbers. I would
Hi so I was wondering what the best way to add or subtract from
Today, while I was trying to write code to just add and subtract the

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.