🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #20005

Re: Floating point bug in vitrual machine?

#20005
From: Brian Duff
Date: Wed, 12 Nov 1997 00:00
42 lines
1441 bytes

Chris Hill wrote in message <64b5vi$rh11@forums.borland.com>...
>In article <3468E535.5AEB@eng.printronix.com>, 
>garc_an@eng.printronix.com says...
>>
>>Try this:
>>
>>  {
>>        Float f = new Float(512.0);
>>        int i = f.intValue();
>>        System.out.println(i);
>>  }
>>
>>I get 511 every time.  Any ideas why?
>>
>>P133/Windows NT 4.0 SP 1/Jbuilder Pro
>>
>>--AG
>
>I can't reproduce here.  I get 512.  P133/Windows NT 4.0 SP 3/Jbuilder 
>Pro.
>
>-- 
>Chris Hill
>hillca@cs.purdue.edu
>

I can't reproduce this on the following platforms:

   o Win 95 OSR2, Sun JDK 1.1.1, P100
   o Win 95 OSR2, Borland JBuilder Std, P100
   o Solaris 5.5.1, Sun JDK 1.1.4, Sparc ULTRA-1
   o Linux 2.0.29, JDK 1.1.3, P100
   o Win NT SP 3, Sun JDK 1.1.4, P100
   o Win NT SP 3, Borland JBuilder Std, P100

Brian

---
Deusjuvat    --   clan MacDhuibh
http://wiredsoc.ml.org/~briand
Technical Details
Message-ID: <64ca0d$rn19@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3468E535.5AEB@eng.printronix.com> <64b5vi$rh11@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,70cc12fd65535774
X-Google-Attributes: gidf74b3,public
From: "Brian Duff" <briand@____wiredsoc.ml.org>
Subject: Re: Floating point bug in vitrual machine?
Date: 1997/11/12
Message-ID: <64ca0d$rn19@forums.borland.com>
X-Deja-AN: 288934380
References: <3468E535.5AEB@eng.printronix.com> <64b5vi$rh11@forums.borland.com>
X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.language