Please Extract the sign ,  Exponent and  mantissa  from the float ,   float is 32 bit number

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please Extract the sign ,  Exponent and  mantissa  from the float ,   float is 32 bit number

771 Views
nareshpuli
Contributor III

Hello,  

regards

Naresh .      please can you help me........

165504_165504.pngScreenshot_2016-09-27-01-13-17.png

Labels (1)
0 Kudos
Reply
4 Replies

618 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi

to solve your problem, we need to know,

1. what chip do you work with?

2. what's your  CW version?

3. what exact problem you have with your code?


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

618 Views
nareshpuli
Contributor III

hi Jennie Zhang,

it is my assignment question,  here a i am not using codewarrior  & chip

if u have any idea extracting of sign and exponent , Mantissa. please solve it...

Regards 

Naresh

Have a nice day...

0 Kudos
Reply

618 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

so from my understanding this is not a CodeWarrior related questions. but a generally c programming question.

thus I suggest you'd better perform search with search engine.

here is code for your reference

Extract mantissa and exponent from a float · GitHub 

c - How to extract the sign, mantissa and exponent from a 32-Bit float - Stack Overflow 

Hope this helps. For more please consult Mr. Google.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

618 Views
nareshpuli
Contributor III

thanq very much,

On Sat, Oct 8, 2016 at 3:12 PM, ZhangJennie <admin@community.freescale.com>

0 Kudos
Reply