What is difference??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: What is difference??

  1. #1
    a Guest

    What is difference??


    What is difference between
    float and double?
    Since both occupy the same space ?
    Thanks in advance.
    -A

  2. #2
    Paul Clapham Guest

    Re: What is difference??

    "float" is 32-bit (single-precision) floating-point, "double" is 64-bit
    (double-precision) floating-point.

    a <a@a.com> wrote in message news:39a40fd7$1@news.devx.com...
    >
    > What is difference between
    > float and double?
    > Since both occupy the same space ?
    > Thanks in advance.
    > -A




  3. #3
    Bharathi B Guest

    Re: What is difference??


    Float and double dont occupy same space
    and is used to represent large range of numbers
    float 32bits 1.7e-308 to 1.7e+308
    double 64bits 3.4e-038 to 3.4e+038
    "a" <a@a.com> wrote:
    >
    >What is difference between
    >float and double?
    >Since both occupy the same space ?
    >Thanks in advance.
    >-A



  4. #4
    madhu Guest

    Re: What is difference??


    "float"(single precision) takes half as much space as "double" (double precision)
    madhu







    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >"float" is 32-bit (single-precision) floating-point, "double" is 64-bit
    >(double-precision) floating-point.
    >
    >a <a@a.com> wrote in message news:39a40fd7$1@news.devx.com...
    >>
    >> What is difference between
    >> float and double?
    >> Since both occupy the same space ?
    >> Thanks in advance.
    >> -A

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center