Groups | Search | Server Info | Login | Register


Groups > comp.arch > #5784

Re: IEEE-754-2008 standard questions

From Brian Drummond <brian@shapes.demon.co.uk>
Newsgroups comp.arch, comp.arch.arithmetic
Subject Re: IEEE-754-2008 standard questions
Date 2012-02-07 09:43 +0000
Organization A noiseless patient Spider
Message-ID <jgqrof$bok$1@dont-email.me> (permalink)
References <53380dad-61fc-492e-ba4b-336bd70e5b09@vh10g2000pbc.googlegroups.com>

Cross-posted to 2 groups.

Show all headers | View raw


On Sat, 04 Feb 2012 20:18:43 -0800, Daku wrote:

> As per this standard, the general format for a 32 bit number converted
> to his format is 1 bit for sign, 8 bits for exponent and 23 bits for
> mantissa/significand. The mantissa is always of the form 1.<fraction
> part>. 

> So, given all of this, how would one convert a number from the
> IEEE-754-2008 format to the standard human understandable form. For
> example, 2*12.375 = 24.75, but in the IEEE-754-2008 32-bit format it is
> 1.<some fraction>

No it isn't. 
It is 1.<some fraction> * 2^<exponent - bias>

Hope this helps.

- Brian

Back to comp.arch | Previous | NextPrevious in thread | Find similar


Thread

IEEE-754-2008 standard questions Daku <dakupoto@gmail.com> - 2012-02-04 20:18 -0800
  Re: IEEE-754-2008 standard questions Quadibloc <jsavard@ecn.ab.ca> - 2012-02-05 14:05 -0800
  Re: IEEE-754-2008 standard questions Brian Drummond <brian@shapes.demon.co.uk> - 2012-02-07 09:43 +0000

csiph-web