🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

���,�����ô��true?

#12631
From: ż�����ϵġ�
Date: Thu, 22 Jul 2004 13:50
17 lines
1139 bytes
   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??????




--
  
 ���Բ�������¡�ҩ¯����������
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.59.95]
Technical Details
Message-ID: <4DKT4I$9WK@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,eb3eea099c74524f,start
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!ctu-peer!news.nctu.edu.tw!netnews.csie.nctu.edu.tw!maily.cic.tsinghua.edu.cn!netnews.sdu.edu.cn!SJTU
From: arson.bbs@bbs.sjtu.edu.cn (ż�����ϵġ�)
Newsgroups: cn.bbs.comp.lang.java
Subject: ���,�����ô��true?
Date: 22 Jul 2004 13:50:42 GMT
Organization: ��ˮ˼Դ
Message-ID: <4DKT4I$9WK@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1090504146.A