🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Floating point bug in vitrual machine?

#20010
From: J. W. Rider (TeamB)
Date: Wed, 12 Nov 1997 00:00
14 lines
800 bytes
On Tue, 11 Nov 1997 15:07:33 -0800, Antonio Garcia
<garc_an@eng.printronix.com> wrote:

>  {
>	Float f = new Float(512.0);
>	int i = f.intValue();
>	System.out.println(i);
>  }

>I get 511 every time.  Any ideas why?

I suspect that the code that you are running is not exactly the same
as the code that you posted.
Technical Details
Message-ID: <346dea50.13237159@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3468E535.5AEB@eng.printronix.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: jw_rider@usa.net (J. W. Rider (TeamB))
Subject: Re: Floating point bug in vitrual machine?
Date: 1997/11/12
Message-ID: <346dea50.13237159@forums.borland.com>
X-Deja-AN: 289116926
References: <3468E535.5AEB@eng.printronix.com>
Reply-To: teamb@oppt-pps.com
Organization: Team Borland
Newsgroups: borland.public.jbuilder.java.language