-
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 ?
-
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 ?
-
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
Forum Rules
|
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
|
Bookmarks