Article View: cn.bbs.comp.lang.java
Article #12632Re: ���,�����ô��true?
From: Raymond
Date: Thu, 22 Jul 2004 14:00
Date: Thu, 22 Jul 2004 14:00
15 lines
1290 bytes
1290 bytes
��ʵ�������b2����0�����Ǹ��� ������a2 = -1.0����false�ˡ� �Ǻ� �� �� arson.bbs@bbs.sjtu.edu.cn (ż�����ϵġ�) �Ĵ������ᵽ: �� : double a2 = 1.0, b2 = -0; : float c2 = 1.0f, d2 = 0.0f; : System.out.println(((a2/b2)==(c2/d2))); //why this "true"?? : float��infinity ��long��infinity һ���ô? ���Ա�ô? ���� �������෴�� : ô��true?????? -- [m[1;37m�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: romie][m
Technical Details
Message-ID:
<4DKTII$9uM@bbs.zju.edu.cn>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!ZJUShow 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!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!ZJU From: romie.bbs@bbs.zju.edu.cn (Raymond) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ���,�����ô��true? Date: 22 Jul 2004 14:00:56 GMT Organization: �㽭��ѧ���ɰٴ�վ Message-ID: <4DKTII$9uM@bbs.zju.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1090504818.A Lines: 15