🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #12641

Re: ���,�����ô��true?

#12641
From: Only YOU
Date: Fri, 23 Jul 2004 01:19
29 lines
2497 bytes
     �Ե�ѽ�����Ҿ��ù���ǣ�
           -0 �ȼ��� 0 ת��Ϊ 0.0              ����-0ֱ��ת��Ϊ 0.00
                              
    �Ǻǣ�����int�ķ�Χ��ȷ���Ҹ���ˣ��Ѿ�����

                                             ��ô��dz��Ǹ�������Ц�� 
����������������������������������������������������������������������������
   int������32λ����Χ��ͨ�� 2��31�η���1��2147483647 �����

     ����float ��32λ����ķ�Χ��1.4013E-45--3.4028E+38 
    ����Ļ���������ô��������ģ���

                            ��л
  
�� �� arson (ż�����ϵġ�) �Ĵ������ᵽ: ��
: �dz����James�Ĺ۲�����, ����С��Ĭ�ϵ���double�͵�,������ת��
: ���Ŷ���. �������˵������. �Ǻ�. zanһ��. ����int��Χ�ܴ��,�����Ǹ�Ŷ.:) 
: �� �� JamesGeng ( Only YOU) �Ĵ������ᵽ: ��
: :    �Ҿ���������ģ��㿴���Է�
: :     ��д�� ������ֱ��ǣ�bbs1    bbs2
: :     public class bbs1{
: :     public static void main(String args[]){
: :         double a2 = 1.0, b2 = -0��//p1
: :         float c2 = 1.0f, d2 = 0.0f,e2=-0.0f;//p7
: :         System.out.println(a2/b2);//p2
: .................������ʡ�ԣ�
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.118.99.71]
Technical Details
Message-ID: <4DKkSG$9yL@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!netnews.sdu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,6200089850d6651,start
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!netnews.sdu.edu.cn!SJTU
From: JamesGeng.bbs@bbs.sjtu.edu.cn ( Only YOU)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ���,�����ô��true?
Date: 23 Jul 2004 01:19:32 GMT
Organization: ��ˮ˼Դ
Message-ID: <4DKkSG$9yL@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1090544464.A
Lines: 29