Format


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Format

  1. #1
    Bong Guest

    Format


    Hello everybody,

    A double data type when displayed or written to an output file and the value
    is huge, how can we eliminate the exponential.Just the normal number with
    a lot of decimal places and number of integer part ?

  2. #2
    Paul Clapham Guest

    Re: Format

    If you don't like the default format for a number, you have to format it
    yourself. You can do that using a DecimalFormat object. Look in the
    java.text package for that.

    PC2

    Bong <bongortiz@yahoo.com> wrote in message news:39d9106f$1@news.devx.com...
    >
    > Hello everybody,
    >
    > A double data type when displayed or written to an output file and the

    value
    > is huge, how can we eliminate the exponential.Just the normal number with
    > a lot of decimal places and number of integer part ?




  3. #3
    bong Guest

    Re: Format


    Thanks. I did it.

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >If you don't like the default format for a number, you have to format it
    >yourself. You can do that using a DecimalFormat object. Look in the
    >java.text package for that.
    >
    >PC2
    >
    >Bong <bongortiz@yahoo.com> wrote in message news:39d9106f$1@news.devx.com...
    >>
    >> Hello everybody,
    >>
    >> A double data type when displayed or written to an output file and the

    >value
    >> is huge, how can we eliminate the exponential.Just the normal number with
    >> a lot of decimal places and number of integer part ?

    >
    >



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