🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#12653
From: 98CS~��è~�����Կ�����
Date: Fri, 23 Jul 2004 03:53
24 lines
2019 bytes
jdk 1.4.2.05 ��Ķ��壺

    public static final double POSITIVE_INFINITY = (1.0D / 0.0D);
    public static final double NEGATIVE_INFINITY = (-1.0D / 0.0D);

�� �� mifeng.bbs@bbs.zju.edu.cn (�������) �Ĵ������ᵽ: ��
: a2/b2=Double.NAGATIVE_INFINITY
: c2/d2=Double.POSITIVE_INFINITY
: �������ڲ�֪��ϵͳ��ô�������������ֵġ�
: �� �� 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??????


--
       �q^�r�q^�r                                               
          @  *                                                  
       ��  ��  ��                  ÿ�������ҵ�С����ȥɢ��     
           ��                      ����һ��һ��Ĺ�ȥ��         
                                   �����piggy��� ̫�äƤ���   
�� ��Դ:���Ұ��Ͽ�վ nkbbs.org��[FROM: 202.108.245.163] 
Technical Details
Message-ID: <4DL32f$A0I@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!news2.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,9acfdaa91da25daf
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!news.neu.edu.cn!news2.happynet.org!NanKai
From: xeon.bbs@bbs.nankai.edu.cn (98CS~��è~�����Կ�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: ���,�����ô��true?
Date: 23 Jul 2004 03:53:13 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <4DL32f$A0I@bbs.nankai.edu.cn>
X-Filename: Java/M.1090554761.A
Lines: 24