How do I extract the coefficient and exponent with operators

Started by leandrojardim, October 04, 2012, 05:09:31 AM

Previous topic - Next topic

leandrojardim

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.... :(

czerny

Show us your not working source, please! We than will see what is wrong.

CommonTater



leandrojardim

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!