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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

825 次查看
nareshpuli
Contributor III

Hello,  

regards

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

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

标签 (1)
0 项奖励
回复
4 回复数

672 次查看
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 项奖励
回复

672 次查看
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 项奖励
回复

672 次查看
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 项奖励
回复

672 次查看
nareshpuli
Contributor III

thanq very much,

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

0 项奖励
回复