Article View: borland.public.jbuilder.java.language
Article #369Help with decimals precision?
From: Matthew
Date: Mon, 02 May 2005 19:22
Date: Mon, 02 May 2005 19:22
7 lines
1197 bytes
1197 bytes
I am trying to convert a string with a value like '012300' to a decimal value like '123.00'. I have tried coverting it into a float, but all I get back is '123.0' and I need both zeros at the end. Can anyone help me? Matthew
Technical Details
Message-ID:
<42767e3f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,1b050e9f3c551651,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 02 May 2005 14:22:56 -0500 From: Matthew <NO@NO.com> User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Help with decimals precision? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.151.72.155 Message-ID: <42767e3f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115061823 69.151.72.155 (2 May 2005 12:23:43 -0700) Lines: 7 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.usenet.com!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail