Article View: cn.bbs.comp.lang.java
Article #12638Re: ���,�����ô��true?
From: ż�����ϵġ�
Date: Thu, 22 Jul 2004 18:09
Date: Thu, 22 Jul 2004 18:09
19 lines
1661 bytes
1661 bytes
�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
: System.out.println((c2/d2));//p3
: System.out.println(b2==d2);//p4
: System.out.println(d2==e2);//p5
: .................������ʡ�ԣ�
--
���Բ�������¡���īֽ��д����
[m[1;33m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.59.95][m
Technical Details
Message-ID:
<4DKZc6$A4N@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!SJTUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,eb3eea099c74524f 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: arson.bbs@bbs.sjtu.edu.cn (ż�����ϵġ�) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ���,�����ô��true? Date: 22 Jul 2004 18:09:03 GMT Organization: ��ˮ˼Դ Message-ID: <4DKZc6$A4N@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1090519590.A Lines: 19