NO

Author Topic: How do I extract the coefficient and exponent with operators  (Read 2959 times)

leandrojardim

  • Guest
How do I extract the coefficient and exponent with operators
« on: October 04, 2012, 05:09:31 AM »
How do I extract the coefficient and exponent of a float variable with operators? I tried a simple float variable, by converting it to a unsigned integer and trying to use every possible combination of operators and bitmasks, using as a guide the article on Wikipedia, but it doesnt work.... :(
« Last Edit: October 04, 2012, 12:05:10 PM by leandrojardim »

czerny

  • Guest
Re: How do I extract the coefficient and exponent with operators
« Reply #1 on: October 04, 2012, 08:11:10 AM »
Show us your not working source, please! We than will see what is wrong.

CommonTater

  • Guest
Re: How do I extract the coefficient and exponent with operators
« Reply #2 on: October 04, 2012, 09:17:35 AM »
A link to the Wikipedia article might also help...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
May the source be with you

leandrojardim

  • Guest
Re: How do I extract the coefficient and exponent with operators
« Reply #4 on: October 14, 2012, 12:32:59 AM »
Thanks timovjl, this page should be all that I need up to now. I was using the pages bout "floating point" and "fixed point", but I lost the page you pointed. Thanks!