Re: ieee754 -0.0f?
Ash Henstock <[email protected]> Thu, 2 Feb 2006 18:03:42 +0000
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Indeed you are right. I'll be off hanging my head somewhere... ;) Regardless, it's pretty horrible thing to be doing. I think I originally wrote it to generate homework answers when I was doing my degree... hand converting numerical representations in the exam room was perhaps one of the most boring tasks I've faced. And clearly it didn't help me remember anything :) On 2/2/06, Jon Watte <[email protected]> wrote: > > > > struct > > { > > unsigned m_mantissa : 24; > > unsigned m_exponent : 7; > > unsigned m_sign : 1; > > }; > > > I believe the mantissa is only 23 bits, with a leading "implicit" one > for all exponents that aren't denormal. There are also 8 exponent bits. > > Cheers, > > / h+ > > > -- > -- The early bird gets the worm, but the second mouse gets the cheese. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gamedevlists-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 >