Re: Single and double data types

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Doug Robbins (dkr_at_NOmvpsSPAM.org)
Date: 08/01/04


Date: Sun, 1 Aug 2004 15:13:39 -0400

For an in-depth discussion, see
http://research.microsoft.com/~hollasch/cgindex/coding/ieeefloat.html

-- 
Please respond to the Newsgroup for the benefit of others who may be 
interested.   Questions sent directly to me will only be answered on a paid 
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
"Dave Neve" <NoAdressForSpammers@Nofs.fr> wrote in message 
news:%23ebzU25dEHA.592@TK2MSFTNGP11.phx.gbl...
> Hi
>
> I have a theoretical question on this subject but I'm naff at maths so 
> don't
> laugh.
>
> From a book, I can see that the lower and upper limits of a single data 
> type
> is
>
> -3.402823E38 to - 1.401298E-45 for negative values
> 1.401298E-45 to 3.402823E38 for positive values
>
> I don't even know how to do calculations with exponents on my computer to
> check for myself but what I'd like to know is
>
> a    How do - exponents work
>
> eg 10 to the power of 2 = 100
>     10 to the power of -2 = ?
>
> b    Do the limits of a single or double data type leave a 'gap' in 
> between?
>
> ie A short data type (-32,768 to 32767) can clearly handle any figure in
> between but this isn't so clear for me with regards to floating point data
> types where there seems to be a gap.
>
> Why not -0.000000 and 0.000000 or sth similar?
>
> Thanks and remember what Einstein4S Maths teacher said about him when he 
> was
> 16 (ok I ain't 16 anymore but...)
>
>
> Dave Neve
>
>
> 


Relevant Pages

  • Re: Single and double data types
    ... You can also think of exponents of 10 as "moving the decimal point", ... there is a gap between zero and the smallest positive ... number that can be represented as a single or double data type. ...
    (microsoft.public.word.vba.general)
  • Single and double data types
    ... I have a theoretical question on this subject but I'm naff at maths so don't ... a How do - exponents work ... b Do the limits of a single or double data type leave a 'gap' in between? ... types where there seems to be a gap. ...
    (microsoft.public.word.vba.general)
  • Re: Declaring many objects
    ... >> with arrays is that they are confined to a single data ... > Your array will just have one data type - it will be a new data type that ... but to the array it will look like just one data type - whatever your ... Thanks Jeff. ...
    (alt.comp.lang.learn.c-cpp)