Article View: borland.public.jbuilder.java.language
Article #17578Floating-Point Range of Values...
From: Rusli Usman
Date: Wed, 21 Oct 1998 00:00
Date: Wed, 21 Oct 1998 00:00
21 lines
1075 bytes
1075 bytes
Hi Everyone,
I understand java's Floating-Point data type consists of float (32-bits)
and double (64-bits). If I want to find out the range of a type, for
example, byte which has a maximum value of 127, all I have to do is as
follows:
byte bValue = 127;
System.out.println("Min of Byte: "+ ++bValue);
The output gives me:
Min of Byte:-128
So, how do I do that with floating-point? If I do ezactly like the byte
data type, I don't see the min value. I know the min and max value of
float, but how do I prove it in the code?
Thanks in advance,
Rusli
Technical Details
Message-ID:
<362DCA9D.CEFABA69@cbn.net.id>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,da07c345f9ebf065,start X-Google-Attributes: gidf74b3,public From: Rusli Usman <mrusli67@cbn.net.id> Subject: Floating-Point Range of Values... Date: 1998/10/21 Message-ID: <362DCA9D.CEFABA69@cbn.net.id> X-Deja-AN: 403506482 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language