Article View: borland.public.jbuilder.java.language
Article #20120Formatting float output
From: Angus M. Fraser
Date: Fri, 24 Oct 1997 00:00
Date: Fri, 24 Oct 1997 00:00
14 lines
695 bytes
695 bytes
I'd like to display the value of a float in a textField to only 2 decimals place but I can't see any obvious way of doing it. I'd like 1.23456 to be shown as 1.23 for example. Can anyone point me in the right direction? Thanks -- Angus M. Fraser afraser@btinternet.com
Technical Details
Message-ID:
<3451136b.2656780@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b10a81d316bd276b,start X-Google-Attributes: gidf74b3,public From: afraser@btinternet.com (Angus M. Fraser) Subject: Formatting float output Date: 1997/10/24 Message-ID: <3451136b.2656780@forums.borland.com> X-Deja-AN: 284672577 Organization: None Reply-To: afraser@btinternet.com Newsgroups: borland.public.jbuilder.java.language