DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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 ?

    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links