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

953件の閲覧回数
nareshpuli
Contributor III

Hello,  

regards

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

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

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

800件の閲覧回数
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 件の賞賛
返信

800件の閲覧回数
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 件の賞賛
返信

800件の閲覧回数
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 件の賞賛
返信

800件の閲覧回数
nareshpuli
Contributor III

thanq very much,

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

0 件の賞賛
返信